From 8605ce520596787755035b098987b3e902c046fe Mon Sep 17 00:00:00 2001 From: vladsaveliev Date: Thu, 28 Nov 2024 16:30:07 +0100 Subject: [PATCH] Use app --- .github/workflows/seqera_docs_changelog.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/seqera_docs_changelog.yml b/.github/workflows/seqera_docs_changelog.yml index 1d007f154..f50d7e76e 100644 --- a/.github/workflows/seqera_docs_changelog.yml +++ b/.github/workflows/seqera_docs_changelog.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - + - name: Clone seqeralabs/docs run: | git clone https://github.com/seqeralabs/docs.git seqeralabs-docs @@ -28,10 +28,18 @@ jobs: ${{ github.event.release.body }} EOF + - uses: actions/create-github-app-token@v1 + id: generate-token + with: + app-id: ${{ secrets.APP_ID }} + private-key: ${{ secrets.APP_PRIVATE_KEY }} + owner: owner + repositories: fork-of-repo + - name: Create Pull Request - uses: peter-evans/create-pull-request@v5 + uses: peter-evans/create-pull-request@v7 with: - token: ${{ secrets.SEQERALABS_DOCS_PAT }} + branch-token: ${{ steps.generate-token.outputs.token }} path: seqeralabs-docs commit-message: "Changelog: Wave ${{ github.event.release.name }}" title: "Changelog: Wave ${{ github.event.release.name }}"