Test github.ref to get branch name

pull/2/head v0.0.4-dev
DustyP 5 years ago
parent 3169953f3f
commit 562ec6acaf

@ -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

Loading…
Cancel
Save