Skip to content

Commit

Permalink
CI build: Verify there are no changed files (#405)
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Hotze <[email protected]>
  • Loading branch information
florian-h05 authored Dec 11, 2024
1 parent 801b270 commit ca90fa6
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,20 @@ jobs:
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci

- run: npm run build
- name: Build
run: npm run build

- name: Verify Changed Files
uses: tj-actions/verify-changed-files@v20
id: verify-changed-files

- name: Fail on Changed Files
if: steps.verify-changed-files.outputs.changed_files != ''
env:
CHANGED_FILES: ${{ steps.verify-changed-files.outputs.changed_files }}
run: |
echo "::error::Files have changed: $CHANGED_FILES"
exit 1
- name: Upload build artifacts
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit ca90fa6

Please sign in to comment.