1
0

Compare commits

...

2 Commits

Author SHA256 Message Date
AutoGits PR Review Bot
59bfaaa334 Merging
PR: products/PackageHub!495
2026-03-05 10:32:59 +00:00
Elisei Roca
35baa491f6 Restrict patchinfo numbering action to leap-* branches
And specify branch when cloning, otherwise it's the default branch.
2026-03-04 17:28:29 +01:00

View File

@@ -1,9 +1,10 @@
# Use this as .gitea/workflows/patchinfo_numberator.yaml in all products/* repos
name: Patchinfo incident numbering
on:
push:
workflow_dispatch:
push:
branches:
- 'leap-*'
env:
REPO_PATH: /workspace/${{ gitea.repository }}
@@ -18,7 +19,7 @@ jobs:
run: |
test -n "${{ env.REPO_PATH }}" && rm -rfv "${{ env.REPO_PATH }}"/*
git config --global --add safe.directory ${{ env.REPO_PATH }}
git clone ${{ env.REPO_URL }} ${{ env.REPO_PATH }}
git clone -b ${{ gitea.ref_name }} --single-branch ${{ env.REPO_URL }} ${{ env.REPO_PATH }}
- name: Update all new _patchinfo files
uses: https://src.opensuse.org/actions/patchinfo-numbering-action@v0