summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/autobot.yaml17
1 files changed, 10 insertions, 7 deletions
diff --git a/.github/workflows/autobot.yaml b/.github/workflows/autobot.yaml
index 4e74d0a..f1ebe4e 100644
--- a/.github/workflows/autobot.yaml
+++ b/.github/workflows/autobot.yaml
@@ -9,20 +9,23 @@ jobs:
runs-on: ubuntu-latest
- permissions:
- contents: write
- pull-requests: write
-
steps:
+ - name: Generate GitHub App token
+ uses: actions/create-github-app-token@v1
+ id: app-token
+ with:
+ app-id: ${{ vars.APP_ID }}
+ private-key: ${{ secrets.PRIVATE_KEY }}
+
- name: Fetch metadata
uses: dependabot/fetch-metadata@v2
id: metadata
with:
- github-token: ${{ github.token }}
+ github-token: ${{ steps.app-token.outputs.token }}
- name: Enable auto-merge
- if: steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor'
+ if: ${{ steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor' }}
run: gh pr merge --auto --squash "$PR"
env:
- GH_TOKEN: ${{ github.token }}
PR: ${{ github.event.pull_request.html_url }}
+ GH_TOKEN: ${{ steps.app-token.outputs.token }}