Skip to content

Commit

Permalink
Use verify-changed-files to verify lexer.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
AnHeuermann committed May 28, 2024
1 parent eaa9335 commit 84485e4
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/lexer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,20 @@ jobs:

- name: Check for changes in src/lexer.jl
id: changed-lexer
uses: tj-actions/changed-files@v44
uses: tj-actions/verify-changed-files@v20
with:
since_last_remote_commit: true
files: |
src/lexer.jl
- name: Archive changed lexer.jl
if: steps.changed-lexer.outputs.any_modified == 'true'
if: steps.changed-lexer.outputs.files_changed == 'true'
uses: actions/upload-artifact@v4
with:
name: lexer.jl
path: ${{ steps.changed-markdown-files.outputs.all_changed_files }}
path: ${{ steps.verify-changed-files.outputs.changed_files }}

- name: Fail if lexer.jl isn't up-to-date
if: steps.changed-lexer.outputs.files_changed == 'true'
run: |
echo "::error file=src/lexer.jl,line=1::Generated lexer.jl outdated."
exit 1

0 comments on commit 84485e4

Please sign in to comment.