diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index a426a2b4..83251120 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -29,19 +29,12 @@ jobs: # run: | # helm repo add bitnami https://charts.bitnami.com/bitnami - - name: Generate JWT and token - id: generate-github-app-tokens - uses: jamestrousdale/github-app-jwt-token@0.1.4 + - name: Retrieve GH app token + id: generate-github-app-token + uses: getsentry/action-github-app-token@v2 with: - app-id: ${{ secrets.CHART_UPDATER_APP_ID }} - private-key: ${{ secrets.CHART_UPDATER_APP_KEY }} - - - name: Set environment from action output - run: | - { - echo "GITHUB_APP_JWT=${{ steps.generate-github-app-tokens.outputs.jwt }}" - echo "GITHUB_APP_ACCESS_TOKEN=${{ steps.generate-github-app-tokens.outputs.access-token }}" - } >> ${GITHUB_ENV} + app_id: ${{ secrets.CHART_UPDATER_APP_ID }} + private_key: ${{ secrets.CHART_UPDATER_APP_KEY }} - name: Make changes run: | @@ -50,7 +43,7 @@ jobs: - name: Commit & Push changes uses: actions-js/push@master with: - github_token: ${{ env.GITHUB_APP_ACCESS_TOKEN }} + github_token: ${{ steps.generate-github-app-token.outputs.token }} message: Test gh-pages branch: gh-pages-test