From 562ec6acafb864234b14804cac389db3ef8ecfd6 Mon Sep 17 00:00:00 2001 From: Dustin Pianalto Date: Sun, 30 Aug 2020 17:09:13 -0800 Subject: [PATCH] Test github.ref to get branch name --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e5c5d50..ace0641 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,7 +10,7 @@ on: jobs: build: - if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/development' + if: endsWith(github.ref, 'master') || endsWith(github.ref, 'development') runs-on: ubuntu-latest # Steps represent a sequence of tasks that will be executed as part of the job