diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml index 35c73638..9eb8ab2c 100644 --- a/.github/workflows/prepare-release.yml +++ b/.github/workflows/prepare-release.yml @@ -22,11 +22,11 @@ jobs: runs-on: pub-hk-ubuntu-22.04-small steps: - name: Get token for GH application (Linguist) - uses: heroku/use-app-token-action@main + uses: actions/create-github-app-token@v1 id: generate-token with: - app_id: ${{ vars.LINGUIST_GH_APP_ID }} - private_key: ${{ secrets.LINGUIST_GH_PRIVATE_KEY }} + app-id: ${{ vars.LINGUIST_GH_APP_ID }} + private-key: ${{ secrets.LINGUIST_GH_PRIVATE_KEY }} - name: Checkout uses: actions/checkout@v4 @@ -35,7 +35,7 @@ jobs: ref: main # Using the GH application token here will configure the local git config for this repo with credentials # that can be used to make signed commits that are attributed to the GH application user - token: ${{ steps.generate-token.outputs.app_token }} + token: ${{ steps.generate-token.outputs.token }} - name: Update Rust toolchain run: rustup update @@ -81,7 +81,7 @@ jobs: id: pr uses: peter-evans/create-pull-request@v6.1.0 with: - token: ${{ steps.generate-token.outputs.app_token }} + token: ${{ steps.generate-token.outputs.token }} title: Prepare release v${{ steps.new-version.outputs.version }} body: | Changes: @@ -96,4 +96,4 @@ jobs: if: steps.pr.outputs.pull-request-operation == 'created' run: gh pr merge --auto --squash "${{ steps.pr.outputs.pull-request-number }}" env: - GH_TOKEN: ${{ steps.generate-token.outputs.app_token }} + GH_TOKEN: ${{ steps.generate-token.outputs.token }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 74e40e86..d52c707e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,18 +13,18 @@ jobs: runs-on: pub-hk-ubuntu-22.04-small steps: - name: Get token for GH application (Linguist) - uses: heroku/use-app-token-action@main + uses: actions/create-github-app-token@v1 id: generate-token with: - app_id: ${{ vars.LINGUIST_GH_APP_ID }} - private_key: ${{ secrets.LINGUIST_GH_PRIVATE_KEY }} + app-id: ${{ vars.LINGUIST_GH_APP_ID }} + private-key: ${{ secrets.LINGUIST_GH_PRIVATE_KEY }} - name: Checkout uses: actions/checkout@v4 with: # Using the GH application token here will configure the local git config for this repo with credentials # that can be used to make signed commits that are attributed to the GH application user - token: ${{ steps.generate-token.outputs.app_token }} + token: ${{ steps.generate-token.outputs.token }} - name: Update Rust toolchain run: rustup update @@ -47,7 +47,7 @@ jobs: exit 1 fi env: - GH_TOKEN: ${{ steps.generate-token.outputs.app_token }} + GH_TOKEN: ${{ steps.generate-token.outputs.token }} - name: Extract changelog entry id: changelog-entry @@ -69,6 +69,6 @@ jobs: - name: Create GitHub Release uses: softprops/action-gh-release@v2.0.6 with: - token: ${{ steps.generate-token.outputs.app_token }} + token: ${{ steps.generate-token.outputs.token }} tag_name: v${{ steps.new-version.outputs.version }} body: ${{ steps.changelog-entry.outputs.content }}