Skip to content

Commit

Permalink
fix logic
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-zimerman committed Jan 23, 2024
1 parent c48b84c commit f220350
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/skip-ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: Skip CI
on: [push, pull_request]
on:
pull_request:

jobs:
check-ci:
Expand All @@ -18,8 +19,8 @@ jobs:
for item in "${fileChangesArray[@]}"
do
if [[ ! " ${my_array[@]} " =~ " ${item} " ]]; then
echo "{skip_ci}=true >> $GITHUB_ENV"
exit 1
echo "{skip_ci}=false >> $GITHUB_ENV"
exit 0
fi
done
echo "{skip_ci}=false >> $GITHUB_ENV"
echo "{skip_ci}=true >> $GITHUB_ENV"

0 comments on commit f220350

Please sign in to comment.