All checks were successful
Patchinfo incident numbering / use-go-action (push) Successful in 12s
Run on tumbleweed_autobuild with pre-installed go. Do repository checkout via git clone to reduce deps. Use gitea-actions-autobuild as commit user, to simplify the workflow. Add on: workflow_dispatch for triggering the workflow manually if needed. RUNNER_GITEA_DOMAIN is defined in the runner configuration to make this file portable to other Gitea instances.
36 lines
1.2 KiB
YAML
36 lines
1.2 KiB
YAML
# Use this as .gitea/workflows/patchinfo_numberator.yaml in all products/* repos
|
|
name: Patchinfo incident numbering
|
|
|
|
on:
|
|
push:
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
REPO_PATH: /workspace/${{ gitea.repository }}
|
|
REPO_URL: https://gitea-actions-autobuild:${{ secrets.REPO_WRITE }}@$RUNNER_GITEA_DOMAIN/${{ gitea.repository }}.git
|
|
|
|
jobs:
|
|
use-go-action:
|
|
runs-on: tumbleweed_autobuild
|
|
steps:
|
|
|
|
- name: Checkout product
|
|
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 }}
|
|
|
|
- name: Update all new _patchinfo files
|
|
uses: https://src.opensuse.org/actions/patchinfo-numbering-action@v0
|
|
with:
|
|
prefix: packagehub-
|
|
|
|
- name: Commit changes
|
|
uses: https://src.opensuse.org/actions/stefanzweifel-git-auto-commit-action@v5
|
|
with:
|
|
commit_user_name: gitea-actions-autobuild
|
|
commit_author: Patchinfo incident numbering <gitea-actions-autobuild@noreply.src.opensuse.org>
|
|
commit_message: "Update patchinfo incident numbers [skip actions]"
|
|
commit_options: '--no-edit'
|
|
skip_fetch: true
|