add patchinfo numerator #2

Merged
eroca merged 1 commits from msmeissn/LeapNonFree:add-numerator into leap-16.0-nonfree 2025-10-09 17:28:24 +02:00

View File

@@ -0,0 +1,39 @@
# Use this as .gitea/workflows/patchinfo_numberator.yaml in all products/* repos
name: Patchinfo ID numberator
run-name: ${{ gitea.actor }} is setting patchinfo numbers
on: [push]
jobs:
use-go-action:
runs-on: tumbleweed
steps:
# Install packages if not provided by image
- run: |
rpm -q go && exit 0
zypper ref
zypper in -y go
# Generic action from GitHub to clone the product git repo
- name: Checkout product
uses: https://src.opensuse.org/actions/github-actions-checkout@v4
with:
token: ${{ secrets.REPO_WRITE }}
repo-sha256: true
- name: Update all new _patchinfo files
uses: https://src.opensuse.org/actions/patchinfo-numbering-action@v0
with:
prefix: leap-nonfree-
- name: Get last commit author
id: last-commit
run: |
echo "author=$(git log -1 --pretty='%an <%ae>')" >> $GITHUB_OUTPUT
- name: Commit changes back
uses: https://src.opensuse.org/actions/stefanzweifel-git-auto-commit-action@v5
with:
commit_user_name: gitea-actions-autobuild
commit_user_email: autobuild+gitea@opensuse.org
commit_author: ${{ steps.last-commit.outputs.author }}
commit_message: "Update incident numbers [skip actions]"
commit_options: '--no-edit'
skip_fetch: true