File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,12 +46,15 @@ jobs:
4646 docker compose cp mod-scraper:/home/steam/app/mod/Scripts/data/ ./mod/Scripts/
4747 docker compose cp mod-scraper:/home/steam/app/changelog.json ./changelog.json
4848
49- changelog=`cat ./changelog.json`
50- echo "::set-output name=changelog::$changelog"
49+ if [ ! -f ./changelog.json ]; then
50+ echo "changelog={\"changeCount\":0,\"messageMD\":\"No changes\"}" >> $GITHUB_OUTPUT
51+ else
52+ changelog=`cat ./changelog.json`
53+ echo "changelog=$changelog" >> $GITHUB_OUTPUT
54+ fi
5155
52-
5356 - name : Commit updated databases
54- if : ${{ fromJson(steps.extract.outputs.changelog).changeCount > 0 }}
57+ if : ${{ steps.extract.outputs.changelog != '' && fromJson(steps.extract.outputs.changelog).changeCount > 0 }}
5558 env :
5659 COMMIT_MESSAGE : ${{ fromJson(steps.extract.outputs.changelog).messageMD }}
5760 run : |
You can’t perform that action at this time.
0 commit comments