From b63e15d64b38da38e1b42c65c2dba0d4f6a05ba0 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) --- .../workflows/build-publish-develop-pr.yml | 20 +++++++------------ .github/workflows/crib-integration-test.yml | 12 +++++------ 2 files changed, 13 insertions(+), 19 deletions(-) diff --git a/.github/workflows/build-publish-develop-pr.yml b/.github/workflows/build-publish-develop-pr.yml index 3764d5058e5..9c3ffc344f3 100644 --- a/.github/workflows/build-publish-develop-pr.yml +++ b/.github/workflows/build-publish-develop-pr.yml @@ -160,20 +160,14 @@ jobs: runs-on: ubuntu-latest needs: [split, image-tag] permissions: - id-token: write + contents: read steps: - - name: Assume role capable of dispatching action - uses: smartcontractkit/.github/actions/setup-github-token@ef78fa97bf3c77de6563db1175422703e9e6674f # setup-github-token@0.2.1 - id: get-gh-token + - name: Checkout repository + uses: actions/checkout@v4.2.1 with: - aws-role-arn: ${{ secrets.AWS_OIDC_CHAINLINK_CI_AUTO_PR_TOKEN_ISSUER_ROLE_ARN }} - aws-lambda-url: ${{ secrets.AWS_INFRA_RELENG_TOKEN_ISSUER_LAMBDA_URL }} - aws-region: ${{ secrets.AWS_REGION }} + ref: ${{ env.CHECKOUT_REF }} - - uses: convictional/trigger-workflow-and-wait@f69fa9eedd3c62a599220f4d5745230e237904be #v1.6.5 + - name: Call crib-integration-test workflow + uses: ./.github/workflows/crib-integration-test.yml with: - owner: smartcontractkit - 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 + 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..ebce6a5955d 100644 --- a/.github/workflows/crib-integration-test.yml +++ b/.github/workflows/crib-integration-test.yml @@ -1,11 +1,11 @@ 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 +89,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