ACS-3750 Improve branch detection in if conditions (#1503)

This commit is contained in:
Domenico Sibilio
2023-02-02 15:47:34 +01:00
committed by GitHub
parent 7afc54a81f
commit 44cb44db9f
+3 -3
View File
@@ -123,7 +123,7 @@ jobs:
if: >
!failure() &&
!contains(github.event.head_commit.message, '[skip docker_latest]') &&
(github.ref_name == 'master' || contains(github.ref_name, 'release/')) &&
(github.ref_name == 'master' || startsWith(github.ref_name, 'release/')) &&
github.event_name != 'pull_request'
steps:
- uses: actions/checkout@v3
@@ -147,7 +147,7 @@ jobs:
if: >
!failure() &&
contains(github.event.head_commit.message, '[release]') &&
(github.ref_name == 'master' || contains(github.ref_name, 'release/')) &&
(github.ref_name == 'master' || startsWith(github.ref_name, 'release/')) &&
github.event_name != 'pull_request'
steps:
- uses: actions/checkout@v3
@@ -185,7 +185,7 @@ jobs:
if: >
!failure() &&
contains(github.event.head_commit.message, '[publish]') &&
(github.ref_name == 'master' || contains(github.ref_name, 'release/')) &&
(github.ref_name == 'master' || startsWith(github.ref_name, 'release/')) &&
github.event_name != 'pull_request'
steps:
- uses: actions/checkout@v3