Use on published release to trigger a new release on rector-pre… (#2719)

Use on published release to trigger a new release on rector-prefixed
This commit is contained in:
Tomas Votruba 2020-01-20 12:52:02 +01:00 committed by GitHub
commit 0a32b58af7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,8 +5,9 @@ on:
push:
branches:
- master
tags:
- "**"
release:
types:
- published
jobs:
compile_and_deploy_rector_phar:
@ -36,7 +37,7 @@ jobs:
-
name: ''
if: github.event_name == 'push'
if: github.event_name == 'push' || github.event_name == 'release'
run: |
[[ $GITHUB_REF == refs/tags/* ]] && CURRENT_TAG=${GITHUB_REF#refs/tags/} || CURRENT_TAG=""