fix: only run if changed
This commit is contained in:
parent
5f3e1142cf
commit
c5cf0f10b6
1 changed files with 3 additions and 3 deletions
6
.github/workflows/update.yml
vendored
6
.github/workflows/update.yml
vendored
|
|
@ -107,14 +107,14 @@ jobs:
|
||||||
echo "BUILD_SUCCESS=false" >> $GITHUB_OUTPUT # Timeout, consider as failure
|
echo "BUILD_SUCCESS=false" >> $GITHUB_OUTPUT # Timeout, consider as failure
|
||||||
|
|
||||||
- name: Merge PR if build succeeds
|
- name: Merge PR if build succeeds
|
||||||
if: steps.wait-for-build.outputs.BUILD_SUCCESS == 'true'
|
if: steps.git-check.outputs.CHANGED == 'true' && steps.wait-for-build.outputs.BUILD_SUCCESS == 'true'
|
||||||
run: |
|
run: |
|
||||||
gh pr merge ${{ steps.create-pr.outputs.pull-request-number }} --merge
|
gh pr merge ${{ steps.create-pr.outputs.pull-request-number }} --merge
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Schedule retry if build fails
|
- name: Schedule retry if build fails
|
||||||
if: steps.wait-for-build.outputs.BUILD_SUCCESS != 'true'
|
if: steps.git-check.outputs.CHANGED == 'true' && steps.wait-for-build.outputs.BUILD_SUCCESS != 'true'
|
||||||
uses: peter-evans/create-or-update-comment@v3
|
uses: peter-evans/create-or-update-comment@v3
|
||||||
with:
|
with:
|
||||||
issue-number: ${{ steps.create-pr.outputs.pull-request-number }}
|
issue-number: ${{ steps.create-pr.outputs.pull-request-number }}
|
||||||
|
|
@ -122,7 +122,7 @@ jobs:
|
||||||
The Hydra build failed. This PR will be updated and retried in 24 hours.
|
The Hydra build failed. This PR will be updated and retried in 24 hours.
|
||||||
|
|
||||||
- name: Retry update after 24 hours
|
- name: Retry update after 24 hours
|
||||||
if: steps.wait-for-build.outputs.BUILD_SUCCESS != 'true'
|
if: steps.git-check.outputs.CHANGED == 'true' && steps.wait-for-build.outputs.BUILD_SUCCESS != 'true'
|
||||||
uses: peter-evans/repository-dispatch@v2
|
uses: peter-evans/repository-dispatch@v2
|
||||||
with:
|
with:
|
||||||
event-type: retry-flake-update
|
event-type: retry-flake-update
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue