File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -134,15 +134,16 @@ jobs:
134
134
https://api.github.com/repos/firebase/firebase-js-sdk/dispatches
135
135
- name : Check for changes requiring a reference doc publish
136
136
id : docs-check
137
+ # If a diff is found (length of DIFF_CONTENTS > 0) it will write DOCS_NEEDED=true
137
138
run : |
138
139
LAST_PUBLISHED_VERSION=$(npm info firebase version)
139
- git diff --exit-code firebase@$LAST_PUBLISHED_VERSION HEAD docs-devsite
140
- - name : No diff, docs not needed
141
- if : ${{ success() }}
142
- run : echo "DOCS_NEEDED=false " >> $GITHUB_STATE
143
- - name : Diff returned something, docs are needed
144
- if : ${{ failure() }}
145
- run : echo "DOCS_NEEDED=true" >> $GITHUB_STATE
140
+ DIFF_CONTENTS=$( git diff firebase@$LAST_PUBLISHED_VERSION HEAD docs-devsite)
141
+ if [ -n "$DIFF_CONTENTS" ]
142
+ then
143
+ echo "DOCS_NEEDED=true " >> $GITHUB_OUTPUT
144
+ else
145
+ echo "DOCS_NEEDED=false" >> $GITHUB_OUTPUT
146
+ fi
146
147
- name : Log to release tracker
147
148
# Sends release information to cloud functions endpoint of release tracker.
148
149
if : ${{ always() }}
You can’t perform that action at this time.
0 commit comments