Skip to content

Commit

Permalink
chore: fix dependabot automerge (#1547)
Browse files Browse the repository at this point in the history
  • Loading branch information
MayaGillilan authored Nov 21, 2023
1 parent a924d77 commit 3610e63
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ name: 'dependabot approve-and-request-merge'
on: pull_request_target

jobs:
build:
worker:
permissions:
pull-requests: read
pull-requests: write
contents: write
id-token: write
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
Expand All @@ -14,13 +16,8 @@ jobs:
uses: dependabot/fetch-metadata@v1
with:
github-token: '${{ secrets.GITHUB_TOKEN }}'
worker:
permissions:
contents: write
id-token: write
runs-on: ubuntu-latest
if: ${{github.actor == 'dependabot[bot]' && steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major' && !contains(steps.dependabot-metadata.outputs.dependency-names, 'slate') && !contains(steps.dependabot-metadata.outputs.dependency-names, 'plate')}}
steps:
- uses: contentful/github-auto-merge@v1
- name: Auto-merge
if: ${{steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major' && !contains(steps.dependabot-metadata.outputs.dependency-names, 'slate') && !contains(steps.dependabot-metadata.outputs.dependency-names, 'plate')}}
uses: contentful/github-auto-merge@v1
with:
VAULT_URL: ${{ secrets.VAULT_URL }}

0 comments on commit 3610e63

Please sign in to comment.