do not run release on pr (#113)
This commit is contained in:
parent
5acbcf6419
commit
4274d7e4a6
3 changed files with 4 additions and 10 deletions
8
.github/workflows/docker-publish.yml
vendored
8
.github/workflows/docker-publish.yml
vendored
|
|
@ -6,16 +6,12 @@ name: Docker
|
|||
# documentation.
|
||||
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: ["E2E"]
|
||||
types: [completed]
|
||||
branches: [master]
|
||||
tags: [ 'v*.*.*' ]
|
||||
release:
|
||||
types: [ released ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
|
|
|
|||
2
.github/workflows/e2e.yml
vendored
2
.github/workflows/e2e.yml
vendored
|
|
@ -5,8 +5,6 @@ on:
|
|||
branches: [ master ]
|
||||
pull_request:
|
||||
types: [assigned, opened, synchronize, reopened]
|
||||
release:
|
||||
types: [ released ]
|
||||
|
||||
jobs:
|
||||
|
||||
|
|
|
|||
4
.github/workflows/go.yml
vendored
4
.github/workflows/go.yml
vendored
|
|
@ -5,8 +5,6 @@ on:
|
|||
branches: [ master ]
|
||||
pull_request:
|
||||
types: [assigned, opened, synchronize, reopened]
|
||||
release:
|
||||
types: [ released ]
|
||||
|
||||
jobs:
|
||||
|
||||
|
|
@ -49,5 +47,7 @@ jobs:
|
|||
- name: create release
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
if: github.ref == 'refs/heads/master'
|
||||
run: |
|
||||
gh release create -d --generate-notes v$NBGV_SimpleVersion
|
||||
gh release list | grep Draft | tail -n +3 | cut -f 1 | xargs -r -L 1 gh release delete --yes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue