Fix sync releases with rector-prefixed (#2686)

Fix sync releases with rector-prefixed
This commit is contained in:
Tomas Votruba 2020-01-17 12:58:20 +01:00 committed by GitHub
commit d60a4e62fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,6 +5,8 @@ on:
push:
branches:
- master
tags:
- "**"
jobs:
compile_and_deploy_rector_phar:
@ -36,8 +38,7 @@ jobs:
name: ''
if: github.event_name == 'push'
run: |
# see https://github.community/t5/GitHub-Actions/How-to-get-just-the-tag-name/m-p/32163/highlight/true#M1024
CURRENT_TAG=$(echo $GITHUB_REF | cut -d / -f 3)
[[ $GITHUB_REF == refs/tags/* ]] && CURRENT_TAG=${GITHUB_REF#refs/tags/} || CURRENT_TAG=""
git clone https://${ACCESS_TOKEN}@github.com/rectorphp/rector-prefixed.git rector-prefixed > /dev/null 2>&1
cp tmp/rector.phar rector-prefixed/rector.phar