Restrict patchinfo numbering action to leap-* branches #495

Manually merged
products merged 1 commits from eroca/fix-patchinfo-action AGit into leap-16.0 2026-03-05 11:33:04 +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