From a768d7a4c0164d2488c9675efc61bde2361e5fc1e13ffd03593cd3356cdc8766 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Thu, 9 Oct 2025 17:16:07 +0200 Subject: [PATCH] add patchinfo numerator --- .gitea/workflows/patchinfo_numberator.yaml | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .gitea/workflows/patchinfo_numberator.yaml diff --git a/.gitea/workflows/patchinfo_numberator.yaml b/.gitea/workflows/patchinfo_numberator.yaml new file mode 100644 index 0000000..f15bfde --- /dev/null +++ b/.gitea/workflows/patchinfo_numberator.yaml @@ -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 + -- 2.51.1