Skip to content

Commit 1c9eab0

Browse files
authored
Add condition to checkout step in workflow
1 parent e12b871 commit 1c9eab0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/testing-vars.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +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]+)*$' }}
6263
uses: actions/checkout@v4
6364
with:
6465
fetch-depth: 0

0 commit comments

Comments
 (0)