Skip to content

Commit

Permalink
move create asset list job
Browse files Browse the repository at this point in the history
  • Loading branch information
tnyo43 committed Jul 7, 2024
1 parent e379826 commit 4387d8c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 18 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/create-asset-list.yml

This file was deleted.

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 4387d8c

Please sign in to comment.