From ce3a9115e3fef0c8115250ac45ea938b1fc498ea Mon Sep 17 00:00:00 2001 From: Alexis Tyler Date: Sat, 24 Aug 2019 13:48:30 +0930 Subject: [PATCH] check for tag before running release job Signed-off-by: Alexis Tyler --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 81bf8396d..0f7b32109 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 }}