Skip to content

Commit b624d8c

Browse files
committed
(Hopefully) fix release workflow
1 parent 3bf57cf commit b624d8c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/release.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,18 @@ jobs:
6262
git config --local user.email "[email protected]"
6363
git config --local user.name "GitHub Action"
6464
65+
changed="no"
6566
git add docs/reference/
66-
git diff-index --quiet HEAD --
67+
git diff-index --quiet HEAD -- || changed="yes"
6768
68-
echo "::set-output name=changes::$?"
69+
echo "::set-output name=changed::$changed"
6970
7071
- name: Commit reference docs changes
71-
if: ${{ steps.stage_docs.outputs.changes == '1' }}
72+
if: ${{ steps.stage_docs.outputs.changed == 'yes' }}
7273
run: git commit -m "Re-generate reference documentation"
7374

7475
- name: Push documentation
75-
if: ${{ steps.stage_docs.outputs.changes == '1' }}
76+
if: ${{ steps.stage_docs.outputs.changed == 'yes' }}
7677
uses: ad-m/github-push-action@master
7778
with:
7879
# Use a PAT because we need to trigger a workflow run

0 commit comments

Comments
 (0)