From ce1bbbc445add2c0e0a144477f603f7344fe64b4 Mon Sep 17 00:00:00 2001 From: Dustin Pianalto Date: Sun, 30 Aug 2020 16:46:05 -0800 Subject: [PATCH] Check branch name --- .github/workflows/main.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b6e361e..6220930 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,16 +4,13 @@ name: CI # with a tag like v1.0.0 or v1.0.0-dev on: push: - branches: - - master - - development tags: - v[0-9]+.[0-9]+.[0-9]+ - v[0-9]+.[0-9]+.[0-9]+-[a-zA-Z]+ jobs: build: - if: github.event.base_ref == 'refs/heads/master' || github.event.base_ref == 'refs/heads/development' + if: ${GITHUB_REF##*/} == 'refs/heads/master' || ${GITHUB_REF##*/} == 'refs/heads/development' runs-on: ubuntu-latest # Steps represent a sequence of tasks that will be executed as part of the job