mirror of
https://github.com/JG2401/HetznerDokployLab.git
synced 2026-08-29 04:30:10 +00:00
Refactor auto-merge condition for Dependabot PRs
This commit is contained in:
8
.github/workflows/dependabotautomerge.yml
vendored
8
.github/workflows/dependabotautomerge.yml
vendored
@@ -14,14 +14,8 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check for auto-merge label
|
|
||||||
id: check
|
|
||||||
run: |
|
|
||||||
labels=$(jq -r '.pull_request.labels[].name' "$GITHUB_EVENT_PATH" | tr '\n' ' ')
|
|
||||||
echo "labels=$labels" >> "$GITHUB_OUTPUT"
|
|
||||||
|
|
||||||
- name: Auto-merge
|
- name: Auto-merge
|
||||||
if: contains(steps.check.outputs.labels, 'auto-merge')
|
if: contains(github.event.pull_request.labels.*.name, 'auto-merge')
|
||||||
uses: fastify/github-action-merge-dependabot@v3
|
uses: fastify/github-action-merge-dependabot@v3
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GH_TOKEN }}
|
github-token: ${{ secrets.GH_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user