Test github.ref to get branch name
This commit is contained in:
parent
77f932e992
commit
bf4a9f906e
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@ -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…
x
Reference in New Issue
Block a user