Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/auto_dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Auto Actions for Dependabot

on:
pull_request:

permissions:
contents: read

jobs:
auto_approve_merge:
# Job level permissions are required to approve and merge PRs
permissions:
pull-requests: write
contents: write
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- name: Auto approve
run: gh pr review "$PR_URL" --approve --body "Auto approved by Dependabot"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Automerge
run: gh pr merge "$PR_URL" --squash --auto
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

3 changes: 2 additions & 1 deletion .github/workflows/report_test_results.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: read
actions: read
Comment thread
pkthong marked this conversation as resolved.
checks: write
pull-requests: write
steps:
Expand All @@ -34,4 +35,4 @@ jobs:
uses: EnricoMi/publish-unit-test-result-action@27d65e188ec43221b20d26de30f4892fad91df2f # v2.22.0
with:
files: "test_results/**/*.xml"
if: always()
if: always()
Loading