Skip to content

Commit

Permalink
fix: chains action when branch exists
Browse files Browse the repository at this point in the history
  • Loading branch information
dcroote committed Aug 4, 2024
1 parent e38b5d4 commit 93dcbcb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/refresh-index-chains.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@ jobs:
run: |
git config user.name github-actions[bot]
git config user.email github-actions[bot]@users.noreply.github.com
git checkout -b ${{ env.BRANCH_NAME }}
git fetch origin main
git checkout -B ${{ env.BRANCH_NAME }} origin/main
git commit -am "Update chains and flex index files"
git push origin ${{ env.BRANCH_NAME }}
git push -f origin ${{ env.BRANCH_NAME }}
gh pr create -B main -H ${{ env.BRANCH_NAME }} --title 'Update chains and flex index files' --body 'Created by GitHub Actions Cron Job' --reviewer wkande,dcroote
env:
BRANCH_NAME: "actions-chains-index-update"
Expand Down

0 comments on commit 93dcbcb

Please sign in to comment.