chore: enable workflow on PR from forks

This commit is contained in:
Livio Amstutz 2021-08-27 14:32:41 +02:00
parent 1132c9d93d
commit 9aa0989dc1

View file

@ -1,5 +1,12 @@
name: Release name: Release
on: push on:
push:
branches:
- '**'
tags-ignore:
- '**'
workflow_dispatch:
jobs: jobs:
test: test:
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
@ -21,6 +28,7 @@ jobs:
release: release:
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
needs: [test] needs: [test]
if: ${{ github.event_name == 'workflow_dispatch' || github.ref == 'refs/heads/main' }}
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps: steps: