Skip to content

Commit

Permalink
correct way of printing arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-zimerman committed Jan 23, 2024
1 parent 750a9f6 commit 0da5989
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/buildandtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ jobs:
name: Test
runs-on: ubuntu-latest
needs: [Skip CI]
if: ${{ needs.check-ci.outputs.skip_ci != 'true' }} steps:
if: ${{ needs.check-ci.outputs.skip_ci != 'true' }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/skip-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ jobs:
skipList=(".github/codeowners")
# Ignores changelog.md, readme.md,...
fileChangesArray=($(git diff --name-only origin/${{ github.base_ref }}..origin/${{ github.head_ref }} | grep -v '\.md$'))
echo ${fileChangesArray}
git diff --name-only origin/${{ github.base_ref }}..origin/${{ github.head_ref }}
printf '%s\n' "${fileChangesArray[@]}"
for item in "${fileChangesArray[@]}"
do
if [[ ! " ${skipList[@]} " =~ " ${item} " ]]; then
Expand Down

0 comments on commit 0da5989

Please sign in to comment.