Skip to content

Commit a344b42

Browse files
committed
kleine aanpassing met relase check
1 parent d3f8a72 commit a344b42

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ jobs:
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

0 commit comments

Comments
 (0)