Skip to content

Commit

Permalink
add github.event.after arg
Browse files Browse the repository at this point in the history
  • Loading branch information
SoulMelody committed Jun 30, 2024
1 parent fc090d9 commit 112ec6b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/compile_catalog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ jobs:
git fetch origin main
git merge-base origin/main HEAD
REGEXP="^libresvip/.*\.po$"
DIFF_OUTPUT=$(git diff --name-only ${{ github.event.before }} | grep "$REGEXP")
PO_CHANGED_COUNT=$(echo $DIFF_OUTPUT | wc -l)
CHANGED_FILES=$(git diff --name-only ${{ github.event.before }} ${{ github.event.after }})
echo "Changed files: $CHANGED_FILES"
PO_CHANGED_COUNT=$(echo $CHANGED_FILES | grep "$REGEXP" | wc -l)
PO_CHANGED=$([[ PO_CHANGED_COUNT -gt 0 ]] && echo "true" || echo "false")
echo $DIFF_OUTPUT
echo "po_changed=$PO_CHANGED" >> $GITHUB_OUTPUT
- name: Set up Python
Expand Down

0 comments on commit 112ec6b

Please sign in to comment.