diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5592fe6b2..8170e293a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,6 +8,7 @@ on: jobs: changelog: runs-on: ubuntu-latest + if: ${{ github.repository_owner == 'openapi-ts' }} permissions: contents: write pull-requests: write @@ -28,5 +29,5 @@ jobs: commit: "[ci] release" title: "[ci] release" env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.OPENAPI_TS_BOT_GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }}