Skip to content

Commit

Permalink
chore: add "create asset list job" (#52)
Browse files Browse the repository at this point in the history
* chore: create asset list workflow

* fix

* move create asset list job
  • Loading branch information
tnyo43 authored Jul 7, 2024
1 parent 1957af3 commit 099a085
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,20 @@ jobs:
files: main-*
fail_on_unmatched_files: true
generate_release_notes: true

create-asset-list:
needs: [release]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
VERSION=$(echo ${{ github.ref }} | sed -e "s#refs/tags/##g")
curl https://api.github.com/repos/tnyo43/i18n-locale-lint/releases/tags/$VERSION | jq 'reduce .assets[] as $item ({}; .[$item.name] = $item.url)' > scripts/assets.json
- uses: peter-evans/create-pull-request@v6
with:
body: |
test
branch: update-asset-list
commit-message: "chore: update asset list"
draft: true
title: "chore: update asset list"

0 comments on commit 099a085

Please sign in to comment.