From f2b2d7a05846ed303c532f02d5d1a091382d5e65 Mon Sep 17 00:00:00 2001 From: Subeom Choi Date: Wed, 26 Jun 2024 01:41:04 +0900 Subject: [PATCH] fix: use TOKEN instead of GITHUB_TOKEN --- .github/workflows/gitflow.yml | 20 ++++++++++---------- changelog.md | 4 ++++ 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/.github/workflows/gitflow.yml b/.github/workflows/gitflow.yml index ff0c3c7..2d8de92 100644 --- a/.github/workflows/gitflow.yml +++ b/.github/workflows/gitflow.yml @@ -53,7 +53,7 @@ on: default: 'changelog.md' required: false secrets: - GITHUB_TOKEN: + TOKEN: description: 'GitHub token (Default: GitHub Action token)' required: false GITHUB_APP_ID: @@ -75,7 +75,7 @@ env: VERSION_EXPRESSION: ${{ inputs.VERSION_EXPRESSION || '[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*' }} VERSION_HEADER: ${{ inputs.VERSION_HEADER || '## ' }} CHANGELOG: ${{ inputs.CHANGELOG || 'changelog.md' }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN || github.token }} + TOKEN: ${{ secrets.TOKEN || github.token }} GITHUB_APP_ID: ${{ secrets.GITHUB_APP_ID }} GITHUB_APP_PRIVATE_KEY: ${{ secrets.GITHUB_APP_PRIVATE_KEY }} GITHUB_APP_OWNER: ${{ secrets.GITHUB_APP_OWNER }} @@ -101,7 +101,7 @@ jobs: if: ${{ env.GITHUB_APP_ID && env.GITHUB_APP_PRIVATE_KEY && env.GITHUB_APP_OWNER }} run: | echo '::add-mask::${{ steps.fetching-github-token.outputs.token }}' - echo 'GITHUB_TOKEN=${{ steps.fetching-github-token.outputs.token }}' >> $GITHUB_ENV + echo 'TOKEN=${{ steps.fetching-github-token.outputs.token }}' >> $GITHUB_ENV - name: Check branch id: check-branch @@ -182,12 +182,12 @@ jobs: pull_number: context.issue.number, state: 'closed', }) - github-token: ${{ env.GITHUB_TOKEN }} + github-token: ${{ env.TOKEN }} - name: Checkout uses: actions/checkout@v4 with: - token: ${{ env.GITHUB_TOKEN }} + token: ${{ env.TOKEN }} - name: Checkout commit run: | @@ -234,7 +234,7 @@ jobs: pull_number: context.issue.number, state: 'closed', }) - github-token: ${{ env.GITHUB_TOKEN }} + github-token: ${{ env.TOKEN }} - name: If warn on check feature branch if: always() && steps.check-feature-branch.outputs.warning != null @@ -261,7 +261,7 @@ jobs: repo: context.repo.repo, body: message, }) - github-token: ${{ env.GITHUB_TOKEN }} + github-token: ${{ env.TOKEN }} - name: Check release branch id: check-release-branch @@ -333,7 +333,7 @@ jobs: pull_number: context.issue.number, state: 'closed', }) - github-token: ${{ env.GITHUB_TOKEN }} + github-token: ${{ env.TOKEN }} - name: Finish feature branch id: finish-feature-branch @@ -388,7 +388,7 @@ jobs: && git push origin --delete ${{ env.SOURCE_BRANCH }} \ || : env: - GH_TOKEN: ${{ env.GITHUB_TOKEN }} + GH_TOKEN: ${{ env.TOKEN }} - name: Finish norelease branch id: finish-norelease-branch @@ -417,4 +417,4 @@ jobs: && git push origin --delete ${{ env.SOURCE_BRANCH }} \ || : env: - GH_TOKEN: ${{ env.GITHUB_TOKEN }} + GH_TOKEN: ${{ env.TOKEN }} diff --git a/changelog.md b/changelog.md index e8b0179..9c62a1e 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,7 @@ +## 2.2.1 + +- fix: use TOKEN instead of GITHUB_TOKEN + ## 2.2.0 - feature: support fetching github token from github app