Skip to content

Commit 0757946

Browse files
authored
Merge pull request #93 from Flashky/Flashky-patch-1
ci: update and rename automerge.yml to enable-automerge.yml
2 parents a5d1621 + ea410e8 commit 0757946

File tree

2 files changed

+10
-16
lines changed

2 files changed

+10
-16
lines changed

.github/workflows/build-report.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,9 @@ on:
88
push:
99
branches:
1010
- '**'
11-
tags-ignore:
12-
- '**'
13-
paths-ignore:
14-
- '.github/**'
1511
pull_request:
1612
branches:
1713
- '**'
18-
tags-ignore:
19-
- '**'
20-
paths-ignore:
21-
- '.github/**'
2214

2315
jobs:
2416

.github/workflows/automerge.yml renamed to .github/workflows/enable-automerge.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1-
name: Dependabot Auto-Merge
1+
name: Dependabot - Enable Auto-Merge
22

33
# Dependabot Pull Requests Auto-Merge
44

5-
# The auto-merge will be performed only if the semantic version for the changes is MINOR or PATCH.
5+
# This workflow does not execute the merge itself. Instead, it serves as a filter that enables GitHub's native Automatic Merging feature when conditions are met.
6+
7+
# The auto-merge will be enabled only if the semantic version for the changes is MINOR or PATCH.
68
# Pull Requests with semantic versions MAJOR will need manual review and approval.
79

10+
# Once the version filter has enabled Auto-Merge, the Pull Request will enter a waiting state until all required checks defined in the master Branch Protection Rules are passed.
11+
# The secured process is: Safe Version → Enable Auto-Merge → Wait for CI Tests → Automatic Merge.
12+
813
on:
914
pull_request:
1015
branches: ["master", "main"]
@@ -16,20 +21,17 @@ permissions:
1621
jobs:
1722
dependabot-automerge:
1823
runs-on: ubuntu-latest
19-
# Solo si es Dependabot
2024
if: github.actor == 'dependabot[bot]'
2125

2226
steps:
23-
- name: Metadata de Dependabot
27+
28+
- name: Obtain Dependabot Metadata
2429
id: metadata
2530
uses: dependabot/fetch-metadata@08eff52bf64351f401fb50d4972fa95b9f2c2d1b #v2.4.0
2631
with:
2732
github-token: "${{ secrets.GITHUB_TOKEN }}"
2833

29-
# Este paso maneja AMBOS casos (pom.xml y workflows) automáticamente.
30-
# fetch-metadata analiza el cambio de versión (SemVer), no el tipo de archivo.
31-
- name: Activar Auto-Merge
32-
# Solo Minor y Patch
34+
- name: Enable Auto-Merge
3335
if: ${{ steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch' }}
3436
run: gh pr merge --auto --squash "$PR_URL"
3537
env:

0 commit comments

Comments
 (0)