From a5f26b2ce067b115abd39b99e060659ff6fae6b2 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 22 Jan 2023 19:09:49 +0100 Subject: [PATCH] ci: use bot token to create release Signed-off-by: Jens Langhammer --- .github/workflows/release-tag.yml | 4 ++-- .github/workflows/translation-compile.yml | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-tag.yml b/.github/workflows/release-tag.yml index 4a7954ff8..31d59cd62 100644 --- a/.github/workflows/release-tag.yml +++ b/.github/workflows/release-tag.yml @@ -26,14 +26,14 @@ jobs: id: get_version uses: actions/github-script@v6 with: - github-token: ${{ secrets.GITHUB_TOKEN }} + github-token: ${{ secrets.BOT_GITHUB_TOKEN }} script: | return context.payload.ref.replace(/\/refs\/tags\/version\//, ''); - name: Create Release id: create_release uses: actions/create-release@v1.1.4 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} with: tag_name: ${{ github.ref }} release_name: Release ${{ steps.get_version.outputs.result }} diff --git a/.github/workflows/translation-compile.yml b/.github/workflows/translation-compile.yml index 4d4158150..cfe597010 100644 --- a/.github/workflows/translation-compile.yml +++ b/.github/workflows/translation-compile.yml @@ -19,6 +19,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + with: + token: ${{ secrets.BOT_GITHUB_TOKEN }} - name: Setup authentik env uses: ./.github/actions/setup - name: run compile @@ -27,7 +29,7 @@ jobs: uses: peter-evans/create-pull-request@v4 id: cpr with: - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.BOT_GITHUB_TOKEN }} branch: compile-backend-translation commit-message: "core: compile backend translations" title: "core: compile backend translations"