Skip to content

Commit

Permalink
feat(icon-workflow): Enable creation of PRs to the base branch
Browse files Browse the repository at this point in the history
  • Loading branch information
mimokmt committed Oct 16, 2024
1 parent df5d820 commit bda2772
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/icons.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,17 @@ on:

env:
OUTPUT_ROOT_DIR: packages/icon-files/
TARGET_BRANCH: ${{ github.event_name == 'workflow_dispatch' && github.ref_name || 'main' }}

jobs:
icons:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ env.TARGET_BRANCH }}

- uses: actions/setup-node@v3
with:
node-version-file: '.node-version'
Expand Down Expand Up @@ -49,5 +53,5 @@ jobs:
GITHUB_ACCESS_TOKEN: ${{ steps.generate_token.outputs.token }}
GITHUB_REPO_OWNER: pixiv
GITHUB_REPO_NAME: charcoal
GITHUB_DEFAULT_BRANCH: main
GITHUB_DEFAULT_BRANCH: ${{ env.TARGET_BRANCH }}
run: yarn icons-cli github:pr

0 comments on commit bda2772

Please sign in to comment.