From af5f22b3d5d4b82d69b0c34d69d553648738f913 Mon Sep 17 00:00:00 2001 From: mmwinther Date: Thu, 25 Jan 2024 13:15:45 +0100 Subject: [PATCH] Use Dapla Bot to create releases --- .github/workflows/release.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5bc9eb26..329e6e10 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,6 +15,13 @@ jobs: contents: write pull-requests: read steps: + - name: Generate token + id: generate_token + uses: actions/create-github-app-token@v1 + with: + app-id: ${{ secrets.DAPLA_BOT_APP_ID }} + private-key: ${{ secrets.DAPLA_BOT_PRIVATE_KEY }} + - name: Check out the repository uses: actions/checkout@v4 with: @@ -75,4 +82,4 @@ jobs: publish: ${{ steps.check-version.outputs.tag != '' }} tag: ${{ steps.check-version.outputs.tag }} env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}