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