2 Commits
spec ... testpr

Author SHA256 Message Date
Jan Zerebecki
151a38d163 WIP: testpr 2025-08-13 20:29:19 +02:00
Jan Zerebecki
c4dc21ac10 WIP: Add ci job to git push any diff from go generate 2025-08-13 20:27:43 +02:00
3 changed files with 27 additions and 1 deletions

View File

@@ -0,0 +1,26 @@
name: go-generate
on:
push:
branches: ['main']
pull_request:
paths:
- '**.go'
- '**foo'
workflow_dispatch:
jobs:
go-generate:
name: go-generate
container:
image: registry.opensuse.org/home/jzerebecki/branches/devel/factory/git-workflow/containers/opensuse/bci/golang-extended:latest
steps:
- run: git clone --no-checkout --depth 1 ${{ gitea.server_url }}/${{ gitea.repository }} .
- run: git fetch origin ${{ gitea.ref }}
- run: git checkout FETCH_HEAD
- run: go generate -C common; go generate -C workflow-pr
- run: echo ${{ github.event.number }}
- run: echo ${{ github.event.pull_request.author_association }}
- name: Check access
if: ${{ github.event.pull_request.author_association != 'MEMBER' }}
run: exit 1
- run: 'git status --short; git status --porcelain=2|grep --quiet -v . || ( git add .; git config user.name "Gitea Actions"; git config user.email "gitea_noreply@opensuse.org"; git commit -m "CI run result of: go generate"; git show; git show --numstat; git push origin ${{ gitea.ref }} )'
- run: git diff --numstat FETCH_HEAD HEAD

1
.gitignore vendored
View File

@@ -1,4 +1,3 @@
mock
node_modules
*.obscpio
autogits-tmp.tar.zst

1
foo Normal file
View File

@@ -0,0 +1 @@
test