From 14ea13cd8a9c7ac6e3fc4ac40bc8327996715680 Mon Sep 17 00:00:00 2001 From: Angelika Kinas Date: Tue, 7 Nov 2023 13:22:01 +0100 Subject: [PATCH 1/2] feat(git-worklfows): Add backport-bot into workflows --- .github/workflows/backport.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/backport.yml diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml new file mode 100644 index 0000000000..ea959e8eef --- /dev/null +++ b/.github/workflows/backport.yml @@ -0,0 +1,22 @@ +name: Backport + +on: + pull_request: + types: + - closed + - labeled + +env: + HAS_SECRETS: ${{ secrets.HAS_SECRETS }} + +jobs: + backport: + runs-on: ubuntu-22.04 + name: Backport + timeout-minutes: 5 + + steps: + - uses: camptocamp/backport-action@master + with: + token: ${{ secrets.GOPASS_CI_GITHUB_TOKEN }} + if: env.HAS_SECRETS == 'HAS_SECRETS' From d506453c0e3a2a5a02af8c2d994a2c384daebaa6 Mon Sep 17 00:00:00 2001 From: Angelika Kinas Date: Tue, 7 Nov 2023 13:54:49 +0100 Subject: [PATCH 2/2] feat(git-workflows): Use correct github token --- .github/workflows/backport.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml index ea959e8eef..92e1ecf547 100644 --- a/.github/workflows/backport.yml +++ b/.github/workflows/backport.yml @@ -6,9 +6,6 @@ on: - closed - labeled -env: - HAS_SECRETS: ${{ secrets.HAS_SECRETS }} - jobs: backport: runs-on: ubuntu-22.04 @@ -18,5 +15,4 @@ jobs: steps: - uses: camptocamp/backport-action@master with: - token: ${{ secrets.GOPASS_CI_GITHUB_TOKEN }} - if: env.HAS_SECRETS == 'HAS_SECRETS' + token: ${{ secrets.GITHUB_TOKEN }}