check for tag before running release job

Signed-off-by: Alexis Tyler <xo@wvvw.me>
This commit is contained in:
Alexis Tyler
2019-08-24 13:48:30 +09:30
parent 0c70f640cd
commit ce3a9115e3

View File

@@ -42,6 +42,10 @@ jobs:
node-version: [10.x]
steps:
- name: Check if tag
run: |
# Bail if this push doesn't include a tag
[[ "$GITHUB_REF" != refs/tags/* ]] && echo "${GITHUB_REF} is not a tag, exiting..." && exit 78
- name: Checkout repo
uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}