Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mimmi20 committed Oct 16, 2024
1 parent ef7d4d0 commit 1b6d615
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/auto-approve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:
auto-approve:
runs-on: "ubuntu-24.04"

if: ${{ github.actor == 'dependabot[bot]' }}

steps:
- name: "Dependabot metadata"
id: "metadata"
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:
automerge:
runs-on: "ubuntu-24.04"

if: ${{ github.actor == 'dependabot[bot]' }}

steps:
- name: "Dependabot metadata"
id: "metadata"
Expand All @@ -34,7 +36,7 @@ jobs:
run: echo ${{ steps.metadata.outputs.update-type }}

- name: "Enable auto-merge for Dependabot PRs"
if: ${{ github.actor == 'dependabot[bot]' && ( steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch' ) }}
if: ${{ steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch' }}
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: "${{ inputs.pullRequestUrl }}"
Expand Down

0 comments on commit 1b6d615

Please sign in to comment.