From e3c88792cfe39525d5ee865d00fb9862ec39078d Mon Sep 17 00:00:00 2001 From: Rafael Felix Correa Date: Thu, 14 Nov 2024 09:20:53 +0100 Subject: [PATCH] triggering crib-integration-test from build-publish-develop-pr (thanks @HenryNguyen5) --- .github/workflows/build-publish-develop-pr.yml | 5 ++++- .github/workflows/crib-integration-test.yml | 13 ++++++------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-publish-develop-pr.yml b/.github/workflows/build-publish-develop-pr.yml index 3764d5058e5..e4ba4d28456 100644 --- a/.github/workflows/build-publish-develop-pr.yml +++ b/.github/workflows/build-publish-develop-pr.yml @@ -161,6 +161,8 @@ jobs: needs: [split, image-tag] permissions: id-token: write + # https://docs.github.com/en/rest/actions/workflows?apiVersion=2022-11-28#create-a-workflow-dispatch-event + actions: write steps: - name: Assume role capable of dispatching action uses: smartcontractkit/.github/actions/setup-github-token@ef78fa97bf3c77de6563db1175422703e9e6674f # setup-github-token@0.2.1 @@ -176,4 +178,5 @@ jobs: repo: chainlink github_token: ${{ steps.get-gh-token.outputs.access-token }} workflow_file_name: crib-integration-test.yml - client_payload: '{"git_ref": "${{ env.GIT_REF }}", "image-tag": "${{ needs.image-tag.outputs.image-tag }}"}' \ No newline at end of file + propagate_failure: true + client_payload: '{"image-tag": "${{ needs.image-tag.outputs.image-tag }}"}' diff --git a/.github/workflows/crib-integration-test.yml b/.github/workflows/crib-integration-test.yml index 5dd24167ab0..cdaac22e485 100644 --- a/.github/workflows/crib-integration-test.yml +++ b/.github/workflows/crib-integration-test.yml @@ -1,11 +1,10 @@ name: CRIB Integration Tests on: - pull_request: - paths: - - ".github/workflows/crib-integration-test.yml" - schedule: - - cron: "0 1 * * *" - workflow_call: + workflow_dispatch: + inputs: + image-tag: + required: true + description: The chainlink docker image tag to test against concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true @@ -89,7 +88,7 @@ jobs: command: "core-dev-simulated-core-ocr1" crib-alert-slack-webhook: ${{ secrets.CRIB_ALERT_SLACK_WEBHOOK }} product-image: ${{ secrets.AWS_SDLC_ECR_HOSTNAME }}/chainlink - product-image-tag: develop + product-image-tag: ${{ inputs.image-tag }} - uses: actions/checkout@v4.2.1 - name: Set up Go uses: ./.github/actions/setup-go