Skip to content

Commit

Permalink
Merge pull request #15 from buluma/dependabot/github_actions/actions/…
Browse files Browse the repository at this point in the history
…checkout-4

Bump actions/checkout from 3 to 4
  • Loading branch information
github-actions[bot] authored Jan 8, 2024
2 parents a8ff368 + d500e57 commit 07b9381
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 29 deletions.
71 changes: 43 additions & 28 deletions .github/workflows/depandabot_merge.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,51 @@
---
name: Auto Merge
#
# Ansible managed
#

name: "Dependabot Merge"

on:
pull_request:
types:
- labeled
- unlabeled
- synchronize
- opened
- edited
- ready_for_review
- reopened
- unlocked
pull_request_review:
types:
- submitted
status: {}
pull_request_target:

permissions:
contents: write
pull-requests: write

jobs:
automerge:
name: Automerge PRs
runs-on: ubuntu-latest
build:
runs-on: "ubuntu-20.04"
steps:
- name: 'Wait for status checks'
id: waitforstatuschecks
uses: "WyriHaximus/github-action-wait-for-status@v2"
- uses: "actions/checkout@master"
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1
with:
ignoreActions: "Automerge PRs" ## Note that these names are the human readable names use as status on commits, and show up as status checks on PRs.
checkInterval: 13
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:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- name: 'Merge'
uses: "pascalgn/[email protected]"
if: steps.waitforstatuschecks.outputs.status == 'success'
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
dependabot:
name: 'Dependabot'
# needs: [build]
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' || github.actor == 'buluma' && github.event_name == 'pull_request'}}
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/[email protected]
with:
github-token: '${{ secrets.GITHUB_TOKEN }}'
- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --merge "$PR_URL"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
LABELS: automerge
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
2 changes: 1 addition & 1 deletion .github/workflows/gitlab_trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
channel: "#ansible"
message: Starting buluma.postfix GitLab Trigger...
if: always()
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Mirror + trigger CI
uses: buluma/[email protected]
with:
Expand Down

0 comments on commit 07b9381

Please sign in to comment.