-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d648512
commit 392d9e8
Showing
48,982 changed files
with
16,479,506 additions
and
397 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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
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 |
---|---|---|
@@ -1,77 +1,112 @@ | ||
name: Generate Assets | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
wemix-pretendard: | ||
runs-on: ubuntu-latest | ||
if: contains(github.event.head_commit.message, 'release:') | ||
strategy: | ||
matrix: | ||
shard: ["1/6", "2/6", "3/6", "4/6", "5/6", "6/6"] | ||
include: | ||
- shard: "1/6" | ||
branch: "ori-1" | ||
- shard: "2/6" | ||
branch: "ori-2" | ||
- shard: "3/6" | ||
branch: "ori-3" | ||
- shard: "4/6" | ||
branch: "ori-4" | ||
- shard: "5/6" | ||
branch: "ori-5" | ||
- shard: "6/6" | ||
branch: "ori-6" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: "0" | ||
- uses: ./.github/actions/setup-pip | ||
- uses: ./.github/actions/setup-yarn | ||
- uses: ./.github/actions/subset-push | ||
with: | ||
workspace: wemix-pretendard | ||
shard: ${{ matrix.shard }} | ||
branch: ${{ matrix.branch }} | ||
wemix-pretendard: | ||
runs-on: ubuntu-latest | ||
if: contains(github.event.head_commit.message, 'release:') | ||
strategy: | ||
matrix: | ||
shard: ["1/6", "2/6", "3/6", "4/6", "5/6", "6/6"] | ||
include: | ||
- shard: "1/6" | ||
branch: "ori-1" | ||
- shard: "2/6" | ||
branch: "ori-2" | ||
- shard: "3/6" | ||
branch: "ori-3" | ||
- shard: "4/6" | ||
branch: "ori-4" | ||
- shard: "5/6" | ||
branch: "ori-5" | ||
- shard: "6/6" | ||
branch: "ori-6" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: "0" | ||
- uses: ./.github/actions/setup-pip | ||
- uses: ./.github/actions/setup-yarn | ||
- uses: ./.github/actions/subset-push | ||
with: | ||
workspace: wemix-pretendard | ||
shard: ${{ matrix.shard }} | ||
branch: ${{ matrix.branch }} | ||
|
||
auto-update: | ||
needs: [wemix-pretendard] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: "0" | ||
- name: Commit Build File | ||
shell: bash | ||
run: | | ||
# From ../actions/auto-commit | ||
git config user.name "github-actions[bot]" | ||
git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
LAST_COMMIT_NAME="$(git log -n 1 --pretty=format:%an)" | ||
LAST_COMMIT_EMAIL="$(git log -n 1 --pretty=format:%ae)" | ||
LAST_COMMIT_AUTHOR="Co-authored-by: ${LAST_COMMIT_NAME} <${LAST_COMMIT_EMAIL}>" | ||
wemix-pretendard-jp: | ||
runs-on: ubuntu-latest | ||
if: contains(github.event.head_commit.message, 'release:') | ||
strategy: | ||
matrix: | ||
shard: ["1/8", "2/8", "3/8", "4/8", "5/8", "6/8", "7/8", "8/8"] | ||
include: | ||
- shard: "1/8" | ||
branch: "jp-1" | ||
- shard: "2/8" | ||
branch: "jp-2" | ||
- shard: "3/8" | ||
branch: "jp-3" | ||
- shard: "4/8" | ||
branch: "jp-4" | ||
- shard: "5/8" | ||
branch: "jp-5" | ||
- shard: "6/8" | ||
branch: "jp-6" | ||
- shard: "7/8" | ||
branch: "jp-7" | ||
- shard: "8/8" | ||
branch: "jp-8" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: "0" | ||
- uses: ./.github/actions/setup-pip | ||
- uses: ./.github/actions/setup-yarn | ||
- uses: ./.github/actions/subset-push | ||
with: | ||
workspace: wemix-pretendard-jp | ||
shard: ${{ matrix.shard }} | ||
branch: ${{ matrix.branch }} | ||
|
||
BRANCHES=("ori-1" "ori-2" "ori-3" "ori-4" "ori-5" "ori-6") | ||
for BRANCH in "${BRANCHES[@]}"; do | ||
if [[ "$(git rev-parse --verify origin/${BRANCH} 2>/dev/null)" ]]; then | ||
echo "${BRANCH}" | ||
git rebase "origin/${BRANCH}" | ||
git push origin --delete "${BRANCH}" | ||
fi | ||
done | ||
auto-update: | ||
needs: [wemix-pretendard, wemix-pretendard-jp] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: "0" | ||
- name: Commit Build File | ||
shell: bash | ||
run: | | ||
# From ../actions/auto-commit | ||
git config user.name "github-actions[bot]" | ||
git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
LAST_COMMIT_NAME="$(git log -n 1 --pretty=format:%an)" | ||
LAST_COMMIT_EMAIL="$(git log -n 1 --pretty=format:%ae)" | ||
LAST_COMMIT_AUTHOR="Co-authored-by: ${LAST_COMMIT_NAME} <${LAST_COMMIT_EMAIL}>" | ||
LOG="fix: Auto-generate assets" | ||
while [[ "$(git log -2 --pretty=%s | tail -1)" == "${LOG}" ]]; do | ||
TWO_LOG="$(git log -2 --pretty=%s)" | ||
if [[ "$(echo ${TWO_LOG} | head -1)" == "$(echo ${TWO_LOG} | tail -1)" ]]; then | ||
git reset --soft "HEAD~1" | ||
git commit --amend -m "${LOG}" -m "${LAST_COMMIT_AUTHOR}" | ||
fi | ||
done | ||
BRANCHES=("ori-1" "ori-2" "ori-3" "ori-4" "ori-5" "ori-6" "jp-1" "jp-2" "jp-3" "jp-4" "jp-5" "jp-6" "jp-7" "jp-8") | ||
for BRANCH in "${BRANCHES[@]}"; do | ||
if [[ "$(git rev-parse --verify origin/${BRANCH} 2>/dev/null)" ]]; then | ||
echo "${BRANCH}" | ||
git rebase "origin/${BRANCH}" | ||
git push origin --delete "${BRANCH}" | ||
fi | ||
done | ||
if [[ "$(git log @{push}..)" != "" ]]; then | ||
git push | ||
fi | ||
LOG="fix: Auto-generate assets" | ||
while [[ "$(git log -2 --pretty=%s | tail -1)" == "${LOG}" ]]; do | ||
TWO_LOG="$(git log -2 --pretty=%s)" | ||
if [[ "$(echo ${TWO_LOG} | head -1)" == "$(echo ${TWO_LOG} | tail -1)" ]]; then | ||
git reset --soft "HEAD~1" | ||
git commit --amend -m "${LOG}" -m "${LAST_COMMIT_AUTHOR}" | ||
fi | ||
done | ||
if [[ "$(git log @{push}..)" != "" ]]; then | ||
git push | ||
fi |
Oops, something went wrong.