File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 30
30
run : git diff --exit-code --compact-summary
31
31
id : no_change
32
32
- name : create branch
33
- if : ${{ steps.no_change.conclusion == 'failure' }}
33
+ if : ${{ failure() && steps.no_change.conclusion == 'failure' }}
34
34
run : |
35
35
git config user.name 'github-actions[bot]'
36
36
git config user.email 'github-actions[bot]@users.noreply.github.com'
40
40
git commit -m "spack updates"
41
41
git push -f --set-upstream origin github-bot/update_spackages
42
42
- name : create pull request
43
- if : ${{ steps.no_change.conclusion == 'failure' }}
43
+ if : ${{ failure() && steps.no_change.conclusion == 'failure' }}
44
44
run : gh pr create -B main -H github-bot/update_spackages --title 'Update spackages' --body 'Created by Github action'
45
45
env :
46
46
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments