-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'readme_update_20240518' into Sora
- Loading branch information
Showing
6 changed files
with
62 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |