File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222
2323 - name : Check config
2424 id : config
25- if : ${{ github.event_name == 'push' || github.event_name == 'release' }}
2625 run : |
2726 echo "grep=false" >> $GITHUB_OUTPUT
2827 if grep -q alternateFormats ./js/config.js; then
@@ -53,14 +52,14 @@ jobs:
5352 git config --global user.email "github-actions[bot]@users.noreply.github.com"
5453
5554 - name : Commit snapshot
56- if : ${{ steps.config.outputs.grep == 'true' }}
55+ if : ${{ github.event_name == 'push' && steps.config.outputs.grep == 'true' }}
5756 run : |
5857 git add snapshot.html static/*
5958 git commit -m "Snapshot gegenereerd" || echo "No changes to commit"
6059 git push
6160
6261 - name : Upload snapshot.html as artefact
63- if : ${{ steps.config.outputs.grep == 'true ' }}
62+ if : ${{ github.event_name == 'push ' }}
6463 uses : actions/upload-artifact@v4
6564 with :
6665 name : snapshot-files
You can’t perform that action at this time.
0 commit comments