Skip to content

Commit

Permalink
Merge branch 'readme_update_20240518' into Sora
Browse files Browse the repository at this point in the history
  • Loading branch information
Gakuto1112 committed May 17, 2024
2 parents 045bde5 + 177623b commit b892031
Show file tree
Hide file tree
Showing 6 changed files with 62 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .github/README_templates/en.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ Toggles whether messages which are showed frequently show or not. This setting w

<!-- $inject(how_to_use) -->

#### Additional note
In addition to the avatar download method described here, you can also download avatar files from the "Releases" section on the right side of the repository's top page. A zip file of each avatar is attached to the "Assets" section of each release note.

<!-- $inject(notes) -->

## Links
Expand Down
3 changes: 3 additions & 0 deletions .github/README_templates/jp.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ Figuraには、アクションホイールキー(デフォルトは「B」キ

<!-- $inject(how_to_use) -->

#### 追記事項
ここに書かれてあるアバターのダウンロード方法の他に、レポジトリのトップページの右側にある「Releases」からでもアバターファイルをダウンロードできるようにしました。各リリースノートの「Assets」の項目に各アバターのzipファイルが添付されています。

<!-- $inject(notes) -->

## リンク集
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/attach_avatars.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Attach avatars to release assets

on:
release:
types:
- released
- prereleased

jobs:
get_target_branches:
name: Get target branches
uses: ./.github/workflows/get_target_branches.yml
attach_avatar:
name: Attach avatars to release assets
needs: get_target_branches
permissions:
contents: write
uses: Gakuto1112/MyFiguraAvatarPacker/.github/workflows/attach_avatars.yml@main
with:
target_branches: ${{ needs.get_target_branches.outputs.target_branches }}
10 changes: 7 additions & 3 deletions .github/workflows/dispatch_readme.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
name: Dispatch README
name: Dispatch readme

on:
repository_dispatch:
types:
- dispatch_readme

jobs:
get_target_branches:
name: Get target branches
uses: ./.github/workflows/get_target_branches.yml
generate:
name: Generate README
name: Generate readme
needs: get_target_branches
permissions:
contents: write
strategy:
matrix:
target-branch: ${{ fromJSON(vars.TARGET_BRANCHES) }}
target-branch: ${{ fromJSON(needs.get_target_branches.outputs.target_branches) }}
uses: Gakuto1112/FiguraAvatarsReadmeTemplate/.github/workflows/generate_my_figura_avatar_readme.yml@main
with:
branch-name: ${{ matrix.target-branch }}
5 changes: 1 addition & 4 deletions .github/workflows/generate_readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ name: Generate README
on:
push:
branches:
- Senko
- Shiro
- Suzu
- Sora
- '[A-Z]*'
paths:
- .github/README_templates/**
- .github/workflows/generate_readme.yml
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/get_target_branches.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Get target branches

on:
workflow_call:
outputs:
target_branches:
description: The array of merge target branches
value: ${{ jobs.get_target_branches.outputs.target_branches }}

jobs:
get_target_branches:
name: Get target branches
runs-on: ubuntu-latest
outputs:
target_branches: ${{ steps.output_target_branches.outputs.target_branches }}
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Get target branches
run: |
echo '[' > ./branch_list.json
git branch -r | grep ' origin/[A-Z][a-z]' | sed 's/ origin\//"/' | sed -z 's/\r//g; s/\n/", /g' | sed 's/, $//g' >> ./branch_list.json
echo ']' >> ./branch_list.json
- name: Output target branches
id: output_target_branches
run: echo target_branches=$(<./branch_list.json) >> $GITHUB_OUTPUT

0 comments on commit b892031

Please sign in to comment.