Skip to content

Commit 97e5a8c

Browse files
authored
Refactor condition for checkout action
1 parent 1c9eab0 commit 97e5a8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/testing-vars.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
password: ${{ secrets.ORG_DOCKERHUB_ERIGONTECH_TOKEN }}
6060

6161
- name: Checkout git repository
62-
if: ${{ github.ref == 'refs/heads/main' || github.ref matches '^refs/heads/release/[0-9]+(\\.[0-9]+)*$' }}
62+
if: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/') }}
6363
uses: actions/checkout@v4
6464
with:
6565
fetch-depth: 0

0 commit comments

Comments
 (0)