Skip to content

Commit

Permalink
Update dependabot-auto-merge.yaml (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
Starefossen authored Dec 4, 2023
1 parent 4aa70bb commit 7c10c2b
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/dependabot-auto-merge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,14 @@ permissions:
jobs:
dependabot:
runs-on: ubuntu-latest
# if: ${{ github.actor == 'dependabot[bot]' }}
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1.6.0
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"

- name: Generate token
id: app-token
uses: actions/create-github-app-token@v1
Expand All @@ -21,14 +27,7 @@ jobs:
run: echo "${{ steps.app-token.outputs.token }}" | gh auth login --with-token

- name: Enable auto-merge for Dependabot PRs
#if: steps.metadata.outputs.update-type != 'version-update:semver-major'
if: steps.metadata.outputs.update-type != 'version-update:semver-major'
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}

- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1.6.0
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"

0 comments on commit 7c10c2b

Please sign in to comment.