mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-25 04:03:55 +01:00
Fix sync releases with rector-prefixed (#2686)
Fix sync releases with rector-prefixed
This commit is contained in:
commit
d60a4e62fc
5
.github/workflows/rector_phar.yml
vendored
5
.github/workflows/rector_phar.yml
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user