Skip to content

Commit

Permalink
Tweak to compile.yml check to work with forks
Browse files Browse the repository at this point in the history
  • Loading branch information
calebofearth committed Apr 24, 2024
1 parent eb9e1d6 commit 51a8c96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pre-run-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ on:
workflow_call:

env:
MSFT_ACTORS: ( "Nitsirks" "calebofearth" "mojtaba-bisheh" "anjpar" "upadhyayulakiran" )
MSFT_ACTORS: ( "Nitsirks" "mojtaba-bisheh" "anjpar" "upadhyayulakiran" )

jobs:
# Fail if any compile.yml has been modified
Expand Down Expand Up @@ -46,7 +46,7 @@ jobs:
exit 0
fi
done
compiles=$(git diff --name-only origin/$TARGET_BR...origin/$SOURCE_BR)
compiles=$(git diff --name-only $TARGET_BR...$SOURCE_BR)
if [[ $(grep -c compile.yml <<< "$compiles") -gt 0 ]]; then
echo "compile.yml should not be modified for pull requests! Found:"
echo "$compiles"
Expand Down

0 comments on commit 51a8c96

Please sign in to comment.