Compare commits

...

4 Commits

Author SHA1 Message Date
1c602bb701 Fix broken submodule switches
(also gitsync code causeing this fixed)
2024-06-27 08:28:51 +02:00
Marcus Rückert
821c8cae26 Update incident numbers 2024-06-26 14:31:43 +00:00
Marcus Rückert
117c8c6888 Merge pull request 'Enable patchinfo incident identifier generator' (#69) from adrianSuSE/SUSE_ALP_Standard:patchinfo_numberator into 1.0
Reviewed-on: https://src.suse.de/products/SUSE_ALP_Standard/pulls/69
2024-06-26 16:31:20 +02:00
ff23965aea Enable patchinfo incident identifier generator
This actions is using a number of public github actions, which got
cloned to our src.suse.de gitea instance.

In addtion it runs the patchinfo incident number generator after each
commit. It is adding a strictly monotonic increasing number, but never
overwrites any existing incident id.
2024-06-24 16:04:09 +02:00
6 changed files with 48 additions and 6 deletions

View File

@ -0,0 +1,42 @@
# 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
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
steps:
# We should provide go with our image already?
- name: Setup Go
uses: https://src.suse.de/actions/github-setup-go@v5
with:
go-version: '1.20'
# To be obsoleted
- run: |
zypper ar http://download.suse.de/ibs/SUSE:/CA/openSUSE_Factory CA
zypper ref
zypper in -y ca-certificates-suse ca-certificates-suse-ucs
# Generic action from GitHub to clone the product git repo
- name: Checkout product
uses: https://src.suse.de/actions/github-actions-checkout@v4
# Updating incident numbers
- name: Update all new _patchinfo files
uses: https://src.suse.de/actions/patchinfo-numbering-action@v0
- name: Get last commit message
id: last-commit
run: |
echo "author=$(git log -1 --pretty=\"%an <%ae>\")" >> $GITHUB_OUTPUT
- name: Commit changes back
uses: https://src.suse.de/actions/stefanzweifel-git-auto-commit-action@v5
with:
commit_author: ${{ steps.last-commit.outputs.author }}
commit_message: "Update incident numbers"
commit_options: '--no-edit'
skip_fetch: true

@ -1 +1 @@
Subproject commit 48276c391eddf5ebbe65cfa0fb5d2c6353e652b5
Subproject commit 684a0be19d67d96e15e32685a6b761d55f6fe276

2
bonnie

@ -1 +1 @@
Subproject commit 0d0f9ffe9b77a2d7ae928439b95858118d5bbe88
Subproject commit 58af0d47c7d9ee493e7ff6bc3e5b2e51d52573b2

View File

@ -1,4 +1,4 @@
<patchinfo>
<patchinfo incident="1">
<!-- generated from request 331851 -->
<packager>adrianSuSE</packager>
<rating>moderate</rating>
@ -23,4 +23,4 @@
</description>
<package>product-composer</package>
</patchinfo>
</patchinfo>

View File

@ -1,4 +1,4 @@
<patchinfo>
<patchinfo incident="0">
<packager>gboiko</packager>
<rating>important</rating>
<category>no_updateinfo</category>

@ -1 +1 @@
Subproject commit 611bbd628c849a3c023c9494ca554f5d3c751822
Subproject commit fd37e0bd6314fdce68847d11c67231d8c50ba3e9