Skip to content

Commit

Permalink
Move the test into the script.
Browse files Browse the repository at this point in the history
  • Loading branch information
philr committed Jan 2, 2021
1 parent f76bf43 commit 3484144
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@ on:
types: [published]
jobs:
release:
if: startsWith(env.GITHUB_REF, 'legacy-v1.')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- run: git push origin HEAD:legacy-v1
- run: |
echo $GITHUB_REF
if [[ $GITHUB_REF == refs/tags/legacy-v1.* ]]; then
git push origin HEAD:legacy-v1
fi

0 comments on commit 3484144

Please sign in to comment.