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