Skip to content

Commit 405dc38

Browse files
committed
Fix GitHub bot workflow
1 parent f181aaf commit 405dc38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/deps.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
run: git diff --exit-code --compact-summary
3131
id: no_change
3232
- name: create branch
33-
if: ${{ steps.no_change.conclusion == 'failure' }}
33+
if: ${{ failure() && steps.no_change.conclusion == 'failure' }}
3434
run: |
3535
git config user.name 'github-actions[bot]'
3636
git config user.email 'github-actions[bot]@users.noreply.github.com'
@@ -40,7 +40,7 @@ jobs:
4040
git commit -m "spack updates"
4141
git push -f --set-upstream origin github-bot/update_spackages
4242
- name: create pull request
43-
if: ${{ steps.no_change.conclusion == 'failure' }}
43+
if: ${{ failure() && steps.no_change.conclusion == 'failure' }}
4444
run: gh pr create -B main -H github-bot/update_spackages --title 'Update spackages' --body 'Created by Github action'
4545
env:
4646
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)