Skip to content

Commit

Permalink
chore(gha): fix i18n download workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Kohei Asai committed Feb 19, 2024
1 parent 6973699 commit 550e929
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/i18n-download.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@ jobs:
- name: Check the change stats
id: stats
run: |
changes="$(echo "$(git diff --name-only)" | jq --raw-input --slurp 'split("\n") | map(select(length>0))' --compact-output)"
changes="$(git diff --name-only | jq --raw-input --slurp 'split("\n") | map(select(length>0))' --compact-output)"
echo "change-count=$(echo $changes | jq --raw-output 'length')" >> $GITHUB_OUTPUT
echo "change-list=$(echo $changes | jq --raw-output 'map("- " +.+ "\n") | join("")')" >> $GITHUB_OUTPUT
- name: Commit the changes and pushes a feature branch
if: ${{ steps.stats.outputs.change-count >= 1 }}
run: |
Expand All @@ -45,6 +44,8 @@ jobs:
do
gh pr close $number --comment "" --delete-branch
done
env:
GH_TOKEN: ${{ github.token }}
- name: Create a pull request
if: ${{ steps.stats.outputs.change-count >= 1 }}
run: |
Expand Down

0 comments on commit 550e929

Please sign in to comment.