Skip to content

Commit

Permalink
add is-release check
Browse files Browse the repository at this point in the history
  • Loading branch information
fredemmott committed Jun 15, 2020
1 parent 6827a72 commit 2afaaeb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,15 @@ jobs:
- name: Display downloaded files
run: ls -R
working-directory: ${{runner.temp}}/artifacts
- name: Check if this is a release push
id: ref
run: |
if echo ${{github.ref}} | grep --silent refs/tags/v; then
echo "::set-output name=is-release::true"
echo "::set-output name=tag::$(echo ${{github.ref}} | awk -F/ '{print $NF}')"
else
echo "::set-output name=is-release::false"
fi
- name: Create Draft Release
id: create-release
if: steps.ref.outputs.is-release == 'true'
Expand Down

0 comments on commit 2afaaeb

Please sign in to comment.