Skip to content

Commit

Permalink
Update root-ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdymercury authored Nov 30, 2024
1 parent 32c69ff commit 6db8c57
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/root-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,19 +80,19 @@ jobs:
conditional_job_check_files:
# https://www.meziantou.net/executing-github-actions-jobs-or-steps-only-when-specific-files-change.htm
runs-on: ubuntu-latest
# Declare outputs for next jobs
# Declare output for next jobs
outputs:
interpreter_changed: ${{ steps.check_file_changed.outputs.interpreter_changed }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
# Checkout as many commits as needed for the diff
fetch-depth: 2
- shell: pwsh
id: check_file_changed
run: |
# Diff HEAD with the latest commit of master
$diff = git diff --name-only master...HEAD
$diff = git diff --name-only origin/master...HEAD
# Check if a file under interpreter/ has changed
$SourceDiff = $diff | Where-Object { $_ -match '^interpreter/' }
Expand Down

0 comments on commit 6db8c57

Please sign in to comment.