Skip to content

Commit

Permalink
Update dependabot-automerge.yml for rust crate bump
Browse files Browse the repository at this point in the history
We also now print info on dry run
  • Loading branch information
JasonGross authored Apr 13, 2024
1 parent 2cba861 commit 03c1ff9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/dependabot-automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ permissions:
jobs:
dependabot-automerge:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{ github.token }}
steps:
#- name: approve
# run: gh pr review --approve "$PR_URL"
- name: describe for '${{ github.event.pull_request.title }}'
run: |
printf "github.actor == '%s'\n" "${{ github.actor }}"
- name: merge
run: gh pr merge --auto --squash --delete-branch "$PR_URL"
if: ${{ ( github.actor == 'dependabot[bot]' ) || ( github.actor == 'github-actions[bot]' && github.event.pull_request.title == 'Rust Crate Version Bump' ) }}

0 comments on commit 03c1ff9

Please sign in to comment.