From 039f70da8a7b0e0fd0bf7ab138b046fa664931a4 Mon Sep 17 00:00:00 2001 From: sh519-choi Date: Wed, 1 Nov 2023 20:51:50 +0900 Subject: [PATCH 01/13] Add abc.py --- abc.py | 1 + 1 file changed, 1 insertion(+) create mode 100644 abc.py diff --git a/abc.py b/abc.py new file mode 100644 index 000000000..4122b3793 --- /dev/null +++ b/abc.py @@ -0,0 +1 @@ +# Webhook test \ No newline at end of file From 6fe84854b250885a6bd160212abe98aa6996504b Mon Sep 17 00:00:00 2001 From: sh519-choi Date: Wed, 1 Nov 2023 20:53:36 +0900 Subject: [PATCH 02/13] Modify abc.py --- abc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/abc.py b/abc.py index 4122b3793..c03051ac7 100644 --- a/abc.py +++ b/abc.py @@ -1 +1,2 @@ -# Webhook test \ No newline at end of file +# Webhook test +# Something new \ No newline at end of file From f31933a4501cc00f4c9cbb684d880e7c636c1a9f Mon Sep 17 00:00:00 2001 From: sh519-choi Date: Thu, 2 Nov 2023 14:01:15 +0900 Subject: [PATCH 03/13] Add run_doc_benchmark to benchmark workflow --- .github/workflows/benchmark.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index f56a57afa..2751201b2 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -332,3 +332,31 @@ jobs: # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # + run_doc_benchmark: + + needs: [download_data] + + runs-on: ubuntu-latest + + steps: + - name: Send custom JSON data to Slack workflow + id: slack + uses: slackapi/slack-github-action@v1.24.0 + with: + # For posting a rich message using Block Kit + payload: | + { + "text": "GitHub Action build result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}", + "blocks": [ + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "GitHub Action build result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}" + } + } + ] + } + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK From ec8618f6d9e14f0310de239a6525a016a3422e19 Mon Sep 17 00:00:00 2001 From: sh519-choi Date: Thu, 2 Nov 2023 14:02:36 +0900 Subject: [PATCH 04/13] Add webhook_test branch to run condition --- .github/workflows/benchmark.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 2751201b2..9b97509b1 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -5,9 +5,9 @@ name: Benchmark on: push: - branches: [ main ] + branches: [ main, webhook_test ] pull_request: - branches: [ main ] + branches: [ main, webhook_test ] jobs: From ee146eabd68279be2f27785dd37eb1973ae211a9 Mon Sep 17 00:00:00 2001 From: sh519-choi Date: Thu, 2 Nov 2023 14:14:12 +0900 Subject: [PATCH 05/13] Modify payload of slack --- .github/workflows/benchmark.yml | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 9b97509b1..85ef3e515 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -346,16 +346,7 @@ jobs: # For posting a rich message using Block Kit payload: | { - "text": "GitHub Action build result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}", - "blocks": [ - { - "type": "section", - "text": { - "type": "mrkdwn", - "text": "GitHub Action build result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}" - } - } - ] + "text": "GitHub Action build result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}" } env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} From 654a18bc1e5d344ef15074a31f4a4ac700761095 Mon Sep 17 00:00:00 2001 From: sh519-choi Date: Thu, 2 Nov 2023 16:52:02 +0900 Subject: [PATCH 06/13] Update run_doc_benchmark --- .github/workflows/benchmark.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 85ef3e515..310906321 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -334,8 +334,6 @@ jobs: run_doc_benchmark: - needs: [download_data] - runs-on: ubuntu-latest steps: @@ -346,7 +344,7 @@ jobs: # For posting a rich message using Block Kit payload: | { - "text": "GitHub Action build result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}" + "text": "[BMT request]${{github.event.head_commit.id }}" } env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} From 064104697453aa60786b301c74d2f95ea7ba74bb Mon Sep 17 00:00:00 2001 From: sh519-choi Date: Thu, 2 Nov 2023 16:59:21 +0900 Subject: [PATCH 07/13] Fix typo --- .github/workflows/benchmark.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 310906321..094818e6b 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -344,7 +344,7 @@ jobs: # For posting a rich message using Block Kit payload: | { - "text": "[BMT request]${{github.event.head_commit.id }}" + "text": "[BMT Request]${{github.event.head_commit.id }}" } env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} From 1c1e7da70d613fa51527b57fb5e6ebfc0c555ddc Mon Sep 17 00:00:00 2001 From: sh519-choi Date: Thu, 2 Nov 2023 17:05:33 +0900 Subject: [PATCH 08/13] Test --- .github/workflows/benchmark.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 094818e6b..e007e682e 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -345,7 +345,7 @@ jobs: payload: | { "text": "[BMT Request]${{github.event.head_commit.id }}" - } + } env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK From c33c7b6c52765557fe8a8874511fbafdff659daa Mon Sep 17 00:00:00 2001 From: sh519-choi Date: Thu, 2 Nov 2023 18:12:30 +0900 Subject: [PATCH 09/13] Test --- .github/workflows/benchmark.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index e007e682e..094818e6b 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -345,7 +345,7 @@ jobs: payload: | { "text": "[BMT Request]${{github.event.head_commit.id }}" - } + } env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK From dd7987ac645b50285545d94965f0ce642c1f73b7 Mon Sep 17 00:00:00 2001 From: sh519-choi Date: Thu, 2 Nov 2023 18:28:43 +0900 Subject: [PATCH 10/13] Modify benchmark.yml --- .github/workflows/benchmark.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 094818e6b..d1a15d839 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -344,7 +344,7 @@ jobs: # For posting a rich message using Block Kit payload: | { - "text": "[BMT Request]${{github.event.head_commit.id }}" + "text": "[BMT Request] ${{github.event.pull_request.html_url}} ${{github.event.head_commit.id }}" } env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} From 2a096a28636ba606f17cb7153bab39e00468c757 Mon Sep 17 00:00:00 2001 From: sh519-choi Date: Thu, 2 Nov 2023 18:31:06 +0900 Subject: [PATCH 11/13] Test --- .github/workflows/benchmark.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index d1a15d839..b8e2d20d1 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -349,3 +349,4 @@ jobs: env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK + \ No newline at end of file From a7349c9ea960d9322c494e94d6b9fdbcea48f7a4 Mon Sep 17 00:00:00 2001 From: sh519-choi Date: Thu, 2 Nov 2023 18:36:57 +0900 Subject: [PATCH 12/13] Modify benchmark.yml --- .github/workflows/benchmark.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index b8e2d20d1..6e526572b 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -344,7 +344,7 @@ jobs: # For posting a rich message using Block Kit payload: | { - "text": "[BMT Request] ${{github.event.pull_request.html_url}} ${{github.event.head_commit.id }}" + "text": "[BMT Request] ${{ github.event.head_commit.url }}" } env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} From 45a91d36b0c40c3772842a2b5148e3122b46345a Mon Sep 17 00:00:00 2001 From: ShinHyung Choi Date: Fri, 3 Nov 2023 10:39:23 +0900 Subject: [PATCH 13/13] Update README.md for test --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f11ba708a..a4411e07e 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ [![Test](https://github.com/Samsung/CredSweeper/actions/workflows/test.yml/badge.svg)](https://github.com/Samsung/CredSweeper/actions/workflows/test.yml) [![codecov](https://codecov.io/gh/Samsung/CredSweeper/branch/main/graph/badge.svg)](https://codecov.io/gh/Samsung/CredSweeper) [![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/6055/badge)](https://bestpractices.coreinfrastructure.org/projects/6055) - +abc - [CredSweeper](#credsweeper)