forked from products/PackageHub
Prepare for Maintenance, but not enabling it yet. (Changes from Adrian) Signed-off-by: Nathan Cutler <ncutler@suse.cz>
32 lines
1.3 KiB
YAML
32 lines
1.3 KiB
YAML
# 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:
|
|
# Generic action from GitHub to clone the product git repo
|
|
- name: Checkout product
|
|
uses: https://gitea-actions-autobuild:${{ secrets.REPO_READ }}@src.suse.de/actions/github-actions-checkout@v4
|
|
with:
|
|
token: ${{ secrets.REPO_WRITE }}
|
|
repo-sha256: true
|
|
- name: Update all new _patchinfo files
|
|
uses: https://gitea-actions-autobuild:${{ secrets.REPO_READ }}@src.suse.de/actions/patchinfo-numbering-action@v0
|
|
- 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://gitea-actions-autobuild:${{ secrets.REPO_READ }}@src.suse.de/actions/stefanzweifel-git-auto-commit-action@v5
|
|
with:
|
|
commit_user_name: gitea-actions-autobuild
|
|
commit_user_email: autobuild+gitea@suse.de
|
|
commit_author: ${{ steps.last-commit.outputs.author }}
|
|
commit_message: "Update incident numbers [skip actions]"
|
|
commit_options: '--no-edit'
|
|
skip_fetch: true
|
|
|