diff options
Diffstat (limited to '.github/workflows/autobot.yaml')
| -rw-r--r-- | .github/workflows/autobot.yaml | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/.github/workflows/autobot.yaml b/.github/workflows/autobot.yaml index f1ebe4e..129eb80 100644 --- a/.github/workflows/autobot.yaml +++ b/.github/workflows/autobot.yaml @@ -1,31 +1,34 @@ -name: Auto-merge Dependabot +name: "Auto-merge Dependabot" -on: pull_request +on: + pull_request: jobs: automerge: - name: Check and merge PR - if: github.actor == 'dependabot[bot]' + name: "Check and merge PR" - runs-on: ubuntu-latest + if: ${{ github.actor == 'dependabot[bot]' }} + + runs-on: "ubuntu-latest" steps: - - name: Generate GitHub App token - uses: actions/create-github-app-token@v1 - id: app-token + - 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 + - name: "Fetch metadata" + uses: "dependabot/fetch-metadata@v2" + id: "metadata" with: github-token: ${{ steps.app-token.outputs.token }} - - name: Enable auto-merge + - name: "Enable auto-merge" 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: - PR: ${{ github.event.pull_request.html_url }} GH_TOKEN: ${{ steps.app-token.outputs.token }} + PR: ${{ github.event.pull_request.html_url }} + run: | + gh pr merge --auto --squash "$PR" |
