Skip to content

Commit

Permalink
Happy Newmanium 2024/Update Role.
Browse files Browse the repository at this point in the history
  • Loading branch information
buluma committed Jan 2, 2024
1 parent 06d41ee commit db39c4a
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/depandabot_merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
#
# Ansible managed
#

name: "Dependabot Merge"

on:
pull_request:
pull_request_target:

permissions:
contents: write
pull-requests: write

jobs:
build:
runs-on: "ubuntu-20.04"
steps:
- uses: "actions/checkout@master"
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Approve a PR
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: "Merge Dependabot PR"
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit db39c4a

Please sign in to comment.