chore: enable workflow on PR from forks
This commit is contained in:
parent
1132c9d93d
commit
9aa0989dc1
1 changed files with 9 additions and 1 deletions
10
.github/workflows/release.yml
vendored
10
.github/workflows/release.yml
vendored
|
@ -1,5 +1,12 @@
|
|||
name: Release
|
||||
on: push
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- '**'
|
||||
tags-ignore:
|
||||
- '**'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-18.04
|
||||
|
@ -21,6 +28,7 @@ jobs:
|
|||
release:
|
||||
runs-on: ubuntu-18.04
|
||||
needs: [test]
|
||||
if: ${{ github.event_name == 'workflow_dispatch' || github.ref == 'refs/heads/main' }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
steps:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue