Skip to content

Commit

Permalink
chore(gha): close old pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kohei Asai committed Feb 19, 2024
1 parent c70a11a commit af672a1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/i18n-download.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ jobs:
git add .
git commit -m "feat(i18n): apply i18n dictionary update(s)"
git push origin i18n-update-${{ github.run_id }}
- name: Close the old pull requests
if: ${{ steps.stats.outputs.change-count >= 1 }}
run: |
for number in `gh pr list --author "github-actions[bot]" --search "head:i18n-update-" --json number | jq --raw-output 'map(.number) | join(" ")'`
do
gh pr close $number --comment "" --delete-branch
done
- name: Create a pull request
if: ${{ steps.stats.outputs.change-count >= 1 }}
run: |
Expand Down

0 comments on commit af672a1

Please sign in to comment.