File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 66
66
cat <(md5sum cheatsheet.json) > ../cheatsheet_json_hash_new
67
67
cd ../..
68
68
- name : Publish cheatsheet if changed
69
- id : publish
69
+ id : publish-pdf
70
70
if : ${{ hashFiles('docs/cheatsheet_hash') != hashFiles('docs/cheatsheet_hash_new') }}
71
71
run : |
72
72
cat docs/cheatsheet_hash
78
78
git add cheatsheet_hash _static/cheatsheet/cheatsheet.pdf
79
79
git commit -m "chore: Update cheatsheet pdf"
80
80
- name : Publish UI cheatsheet if changed
81
- id : publish
81
+ id : publish-json
82
82
if : ${{ hashFiles('docs/cheatsheet_json_hash') != hashFiles('docs/cheatsheet_json_hash_new') }}
83
83
run : |
84
84
cat docs/cheatsheet_json_hash
91
91
git commit -m "chore: Update cheatsheet json"
92
92
- name : Push changes
93
93
uses : ad-m/github-push-action@master
94
- if : steps.publish.outcome != 'Skipped' && success()
94
+ if : ( steps.publish-pdf .outcome != 'Skipped' || steps.publish-json.outcome != 'Skipped) && success()
95
95
with :
96
96
github_token : ${{ secrets.GITHUB_TOKEN }}
97
97
branch : ${{ github.ref }}
You can’t perform that action at this time.
0 commit comments