Skip to content

Commit 473e5d1

Browse files
authored
chore: fix cheatsheet action step ids (#3150)
1 parent f128421 commit 473e5d1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/cheatsheet.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
cat <(md5sum cheatsheet.json) > ../cheatsheet_json_hash_new
6767
cd ../..
6868
- name: Publish cheatsheet if changed
69-
id: publish
69+
id: publish-pdf
7070
if: ${{ hashFiles('docs/cheatsheet_hash') != hashFiles('docs/cheatsheet_hash_new') }}
7171
run: |
7272
cat docs/cheatsheet_hash
@@ -78,7 +78,7 @@ jobs:
7878
git add cheatsheet_hash _static/cheatsheet/cheatsheet.pdf
7979
git commit -m "chore: Update cheatsheet pdf"
8080
- name: Publish UI cheatsheet if changed
81-
id: publish
81+
id: publish-json
8282
if: ${{ hashFiles('docs/cheatsheet_json_hash') != hashFiles('docs/cheatsheet_json_hash_new') }}
8383
run: |
8484
cat docs/cheatsheet_json_hash
@@ -91,7 +91,7 @@ jobs:
9191
git commit -m "chore: Update cheatsheet json"
9292
- name: Push changes
9393
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()
9595
with:
9696
github_token: ${{ secrets.GITHUB_TOKEN }}
9797
branch: ${{ github.ref }}

0 commit comments

Comments
 (0)