Skip to content

Commit

Permalink
Merge pull request #85 from mimmi20/updates
Browse files Browse the repository at this point in the history
update workflow
  • Loading branch information
mimmi20 authored Oct 16, 2024
2 parents ef7d4d0 + 1b6d615 commit 218bbfa
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 218bbfa

Please sign in to comment.