Restrict patchinfo numbering action to leap-* branches #495
@@ -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
|
||||
Reference in New Issue
Block a user