From 6002f8ff0b8cf6aafba92451d967ef6312202e2d Mon Sep 17 00:00:00 2001 From: Dan Mills <52407433+daniel-mills-cqc@users.noreply.github.com> Date: Tue, 19 Nov 2024 16:27:27 +0000 Subject: [PATCH 1/4] ci: Update to slack github action v4 --- .github/workflows/pytket_benchmarking.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pytket_benchmarking.yml b/.github/workflows/pytket_benchmarking.yml index 7d5b388966..ee0ec884a7 100644 --- a/.github/workflows/pytket_benchmarking.yml +++ b/.github/workflows/pytket_benchmarking.yml @@ -102,8 +102,9 @@ jobs: id: slack uses: slackapi/slack-github-action@v2.0.0 with: - channel-id: 'G01CP0YFFA7' - slack-message: '${{ env.RETURN_TEST }} Release tag: ${{ github.event.release.tag_name }}.' + token: ${{ secrets.PYTKET_BENCHMARKING_SLACK_BOT_TOKEN }} + payload: | + channel: 'G01CP0YFFA7' + text: '${{ env.RETURN_TEST }} Release tag: ${{ github.event.release.tag_name }}.' env: - SLACK_BOT_TOKEN: ${{ secrets.PYTKET_BENCHMARKING_SLACK_BOT_TOKEN }} RETURN_TEST: ${{ env.RETURN_TEST }} From bbea07ff6b1d45f661528211040c8aa90a10a8b7 Mon Sep 17 00:00:00 2001 From: Dan Mills <52407433+daniel-mills-cqc@users.noreply.github.com> Date: Tue, 19 Nov 2024 16:31:52 +0000 Subject: [PATCH 2/4] Run on pull request to main --- .github/workflows/pytket_benchmarking.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/pytket_benchmarking.yml b/.github/workflows/pytket_benchmarking.yml index ee0ec884a7..61afcb733c 100644 --- a/.github/workflows/pytket_benchmarking.yml +++ b/.github/workflows/pytket_benchmarking.yml @@ -4,6 +4,9 @@ on: workflow_dispatch: release: types: [published] + pull_request: + branches: + - main jobs: From f98bf6a514cf9ee47d9bcc9c422372466990539b Mon Sep 17 00:00:00 2001 From: Dan Mills <52407433+daniel-mills-cqc@users.noreply.github.com> Date: Tue, 19 Nov 2024 16:50:28 +0000 Subject: [PATCH 3/4] Add slack method --- .github/workflows/pytket_benchmarking.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pytket_benchmarking.yml b/.github/workflows/pytket_benchmarking.yml index 61afcb733c..c4567b401b 100644 --- a/.github/workflows/pytket_benchmarking.yml +++ b/.github/workflows/pytket_benchmarking.yml @@ -105,6 +105,7 @@ jobs: id: slack uses: slackapi/slack-github-action@v2.0.0 with: + method: chat.postMessage token: ${{ secrets.PYTKET_BENCHMARKING_SLACK_BOT_TOKEN }} payload: | channel: 'G01CP0YFFA7' From 2c54d8156a2706b51e72166c476c2f5344497a19 Mon Sep 17 00:00:00 2001 From: Dan Mills <52407433+daniel-mills-cqc@users.noreply.github.com> Date: Tue, 19 Nov 2024 17:13:57 +0000 Subject: [PATCH 4/4] Remove run on pull request --- .github/workflows/pytket_benchmarking.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/pytket_benchmarking.yml b/.github/workflows/pytket_benchmarking.yml index c4567b401b..c9c9293cbf 100644 --- a/.github/workflows/pytket_benchmarking.yml +++ b/.github/workflows/pytket_benchmarking.yml @@ -4,9 +4,6 @@ on: workflow_dispatch: release: types: [published] - pull_request: - branches: - - main jobs: