From 35baa491f66b16c81e516628961c9f7f97c738df322f7b734fd8ca310515149d Mon Sep 17 00:00:00 2001 From: Elisei Roca Date: Wed, 4 Mar 2026 17:28:29 +0100 Subject: [PATCH] Restrict patchinfo numbering action to leap-* branches And specify branch when cloning, otherwise it's the default branch. --- ...{patchinfo_numberator.yaml => patchinfo_numbering.yaml} | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) rename .gitea/workflows/{patchinfo_numberator.yaml => patchinfo_numbering.yaml} (88%) diff --git a/.gitea/workflows/patchinfo_numberator.yaml b/.gitea/workflows/patchinfo_numbering.yaml similarity index 88% rename from .gitea/workflows/patchinfo_numberator.yaml rename to .gitea/workflows/patchinfo_numbering.yaml index 5a78fa9..27dc0ef 100644 --- a/.gitea/workflows/patchinfo_numberator.yaml +++ b/.gitea/workflows/patchinfo_numbering.yaml @@ -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 -- 2.51.1