Skip to content

Commit

Permalink
do not run release on pr (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
tg123 authored Dec 21, 2022
1 parent 5acbcf6 commit 4274d7e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ on:
branches: [ master ]
pull_request:
types: [assigned, opened, synchronize, reopened]
release:
types: [ released ]

jobs:

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ on:
branches: [ master ]
pull_request:
types: [assigned, opened, synchronize, reopened]
release:
types: [ released ]

jobs:

Expand Down Expand Up @@ -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

0 comments on commit 4274d7e

Please sign in to comment.