Skip to content

Commit

Permalink
Update call_fts3.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dweinholz authored Sep 21, 2023
1 parent 27b2c42 commit 86996f0
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/call_fts3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,20 @@ jobs:
- name: Base SHA
id: create-matrix
run: |
echo "matrix=$(git diff --name-only -r origin/${{ github.base_ref || github.event.inputs.base }} origin/${{ github.head_ref || github.event.inputs.head }} | grep databases/)" >> $GITHUB_OUTPUT
matrix_json='['
first=true
for file in $(git diff --name-only -r origin/${{ github.base_ref || github.event.inputs.base }} origin/${{ github.head_ref || github.event.inputs.head }} | grep databases/); do
if [ "$first" = true ]; then
first=false
else
matrix_json+=','
fi
matrix_json+="\"$file\""
done
matrix_json+=']'
echo "matrix=$matrix_json" >> $GITHUB_OUTPUT
# - name: Get changed files with git diff and send to fts3-connector
Expand Down

0 comments on commit 86996f0

Please sign in to comment.