diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bb4cf58..5243ed5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,13 +15,21 @@ jobs: version: ${{ steps.capture.outputs.version }} branch: ${{ steps.extract_branch.outputs.branch }} steps: + - name: Get Github App Token + uses: actions/create-github-app-token@v3 + id: app-token + with: + client-id: ${{ vars.GH_APP_CLIENT_ID }} + private-key: ${{ secrets.GH_APP_PRIVATE_KEY }} - name: Checkout uses: actions/checkout@v7 + with: + token: ${{ steps.app-token.outputs.token }} - name: Bump if: success() uses: 'phips28/gh-action-bump-version@master' env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} with: major-wording: 'BREAKING' default: 'minor' @@ -29,7 +37,7 @@ jobs: - uses: actions/setup-node@v7 with: node-version-file: .node-version - cache: 'npm' + package-manager-cache: false registry-url: 'https://registry.npmjs.org' - name: Install & Build # npm run test @@ -59,16 +67,19 @@ jobs: working-directory: 'actions/golive-send-environment-info' runs-on: ubuntu-latest steps: + - name: Get Github App Token + uses: actions/create-github-app-token@v3 + id: app-token + with: + client-id: ${{ vars.GH_APP_CLIENT_ID }} + private-key: ${{ secrets.GH_APP_PRIVATE_KEY }} - uses: actions/checkout@v7 name: checkout golive-send-environment-info with: repository: apwide/golive-send-environment-info ref: ${{ needs.bump-and-publish.outputs.branch }} path: ./actions/golive-send-environment-info - token: ${{secrets.CI_GITHUB_TOKEN}} - - run: | - git config --global user.name 'Apwide CI' - git config --global user.email 'ci@apwide.com' + token: ${{ steps.app-token.outputs.token }} - uses: actions/setup-node@v7 with: node-version-file: ./actions/golive-send-environment-info/.node-version @@ -93,16 +104,19 @@ jobs: working-directory: 'actions/golive-send-release-info' runs-on: ubuntu-latest steps: + - name: Get Github App Token + uses: actions/create-github-app-token@v3 + id: app-token + with: + client-id: ${{ vars.GH_APP_CLIENT_ID }} + private-key: ${{ secrets.GH_APP_PRIVATE_KEY }} - uses: actions/checkout@v7 name: checkout golive-send-release-info with: repository: apwide/golive-send-release-info ref: ${{ needs.bump-and-publish.outputs.branch }} path: ./actions/golive-send-release-info - token: ${{secrets.CI_GITHUB_TOKEN}} - - run: | - git config --global user.name 'Apwide CI' - git config --global user.email 'ci@apwide.com' + token: ${{ steps.app-token.outputs.token }} - uses: actions/setup-node@v7 with: node-version-file: ./actions/golive-send-release-info/.node-version