Skip to content

Commit

Permalink
feat: autorun CI on dependency update PR (#631)
Browse files Browse the repository at this point in the history
* feat: autorun CI on dependency update PR

* use composite action

* fix: test dep updater - do not fail on first tidy attempt
  • Loading branch information
aalu1418 authored Mar 21, 2024
1 parent 3223425 commit a697cf5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/open-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ jobs:
create-commits-and-pr:
runs-on: ubuntu-latest
steps:
- name: Setup GitHub Token
id: token
uses: smartcontractkit/.github/actions/setup-github-token@9e7cc0779934cae4a9028b8588c9adb64d8ce68c # [email protected]
with:
aws-role-arn: ${{ secrets.AWS_OIDC_CHAINLINK_SOLANA_CICD_TOKEN_ISSUER_ROLE_ARN }}
aws-lambda-url: ${{ secrets.AWS_RELENG_TEAM_GATI_LAMBDA_URL }}
aws-region: ${{ secrets.AWS_REGION }}
- uses: actions/checkout@v3 # checkout branch that it is called from
- uses: actions/setup-go@v3
with:
Expand All @@ -30,7 +37,7 @@ jobs:
- name: Check if changes + PR exists
id: check
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ steps.token.outputs.access-token }}
run: |
prs=$(gh pr list \
--repo "$GITHUB_REPOSITORY" \
Expand All @@ -56,7 +63,7 @@ jobs:
repo: ${{ github.repository }}
branch: "${{ steps.run.outputs.name }}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ steps.token.outputs.access-token }}
- name: "Cleanup branch"
if: '!steps.check.outputs.skip'
run: |
Expand All @@ -72,3 +79,4 @@ jobs:
branch: ${{ steps.run.outputs.name }}
reviewers: ${{ inputs.reviewers }}
body: ${{ steps.run.outputs.prBody }}
token: ${{ steps.token.outputs.access-token }}
2 changes: 1 addition & 1 deletion scripts/update-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ echo "Chainlink Develop Commit: $SHA"

# update dependencies
go get github.com/smartcontractkit/chainlink/integration-tests@$SHA
go mod tidy
go mod tidy || echo -e "------\nInitial go mod tidy failed - will update chainlink dep and try tidy again\n------"
go get github.com/smartcontractkit/chainlink/v2@$SHA
go mod tidy

0 comments on commit a697cf5

Please sign in to comment.