From 1a944f93e1b405db2d368f168ae47274093beae5 Mon Sep 17 00:00:00 2001 From: eduard-cl Date: Tue, 20 Aug 2024 02:05:14 +0200 Subject: [PATCH 1/3] rmn notification test --- .../workflows/trigger-rmn-notification.yml | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/trigger-rmn-notification.yml diff --git a/.github/workflows/trigger-rmn-notification.yml b/.github/workflows/trigger-rmn-notification.yml new file mode 100644 index 0000000..d52a8e9 --- /dev/null +++ b/.github/workflows/trigger-rmn-notification.yml @@ -0,0 +1,45 @@ +name: Call Track RMN Releases + +on: + push: + #release: + # types: [published] + +jobs: + call-track-rmn-releases: + runs-on: ubuntu-latest + timeout-minutes: 40 + permissions: + id-token: write + contents: read + pull-requests: read + steps: + - name: Checkout repository + uses: actions/checkout@v4 + # setup github token + - name: Setup GitHub token + id: setup-github-token + uses: smartcontractkit/.github/actions/setup-github-token@ef78fa97bf3c77de6563db1175422703e9e6674f + with: + aws-role-arn: ${{ secrets.AWS_OIDC_MANIFEST_PIPELINE_AUTO_ACCESS_TOKEN_ISSUER_ROLE_ARN }} + aws-lambda-url: ${{ secrets.GATI_DEVEX_LAMBDA_URL }} + aws-region: ${{ secrets.AWS_REGION }} + aws-role-duration-seconds: ${{ secrets.AWS_ROLE_DURATION_SECONDS }} + # dispatch job on chainlink-integrations-pipeline + - name: Dispatch workflow + id: dispatch + uses: smartcontractkit/.github/actions/dispatch-workflow@main + env: + DISTINCT_RUN_NAME: "chain-selectors-new-release-rmn-notification" + with: + repo: smartcontractkit/chainlink-integrations-pipeline + workflow: track-rmn-releases.yml + ref: rmn-notification + actor: "app-token-issuer-devex[bot]" + github-token: ${{ steps.setup-github-token.outputs.access-token }} + # distinct_run_name is used by the dispatch-workflow action to find the right job + # hence it is also passed as one of the workflow-dispatch-fields + # and then used as run-name in chainlink-integrations-pipeline + distinct_run_name: ${{ github.sha }} + workflow-dispatch-fields: | + --field distinct_run_name="${{ github.sha }}" \ No newline at end of file From dbf61133592c5a980f2ef0f8d86fd1d2370364ef Mon Sep 17 00:00:00 2001 From: eduard-cl Date: Sun, 25 Aug 2024 22:47:17 +0200 Subject: [PATCH 2/3] update branch to main --- .github/workflows/trigger-rmn-notification.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/trigger-rmn-notification.yml b/.github/workflows/trigger-rmn-notification.yml index d52a8e9..5577bcf 100644 --- a/.github/workflows/trigger-rmn-notification.yml +++ b/.github/workflows/trigger-rmn-notification.yml @@ -34,7 +34,7 @@ jobs: with: repo: smartcontractkit/chainlink-integrations-pipeline workflow: track-rmn-releases.yml - ref: rmn-notification + ref: main actor: "app-token-issuer-devex[bot]" github-token: ${{ steps.setup-github-token.outputs.access-token }} # distinct_run_name is used by the dispatch-workflow action to find the right job From 31bc94f77e5106e3c1cd784b6dc53a0cb1980dbf Mon Sep 17 00:00:00 2001 From: eduard-cl Date: Mon, 26 Aug 2024 17:25:44 +0200 Subject: [PATCH 3/3] execute workflow on version released --- .github/workflows/trigger-rmn-notification.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/trigger-rmn-notification.yml b/.github/workflows/trigger-rmn-notification.yml index 5577bcf..b65c84b 100644 --- a/.github/workflows/trigger-rmn-notification.yml +++ b/.github/workflows/trigger-rmn-notification.yml @@ -1,9 +1,8 @@ name: Call Track RMN Releases on: - push: - #release: - # types: [published] + release: + types: [published] jobs: call-track-rmn-releases: