forked from adamm/autogits
Compare commits
2 Commits
generate-b
...
testpr
Author | SHA256 | Date | |
---|---|---|---|
|
151a38d163
|
||
|
c4dc21ac10
|
26
.gitea/workflows/go-generate.yaml
Normal file
26
.gitea/workflows/go-generate.yaml
Normal 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
1
.gitignore
vendored
@@ -1,4 +1,3 @@
|
||||
mock
|
||||
node_modules
|
||||
*.obscpio
|
||||
autogits-tmp.tar.zst
|
||||
|
Reference in New Issue
Block a user