Skip to content

Commit 14e6149

Browse files
VIA-598 AJ/AS WIP fix failing action due to branch mismatch
1 parent 4086bcb commit 14e6149

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/cicd-9-scheduled-wip.yaml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828

2929
if: ${{ !cancelled() && (github.event_name=='schedule' || (github.event_name=='workflow_dispatch' && inputs.release=='release1')) }}
3030
steps:
31-
- name: "Checkout code"
31+
- name: "Checkout release/v1.0 branch"
3232
uses: actions/checkout@v5
3333
with:
3434
fetch-depth: 0
@@ -38,7 +38,11 @@ jobs:
3838
id: get-latest-tag-name
3939
run: |
4040
echo "value=$(git describe --tags --abbrev=0 --first-parent)" | tee -a $GITHUB_OUTPUT
41-
echo "Latest tag name on release/v1.0 branch is : ${value}"
41+
42+
- name: "Checkout code"
43+
uses: actions/checkout@v5
44+
with:
45+
fetch-depth: 0
4246

4347
- name: "Deploy to AWS (preprod)"
4448
timeout-minutes: 10
@@ -63,7 +67,7 @@ jobs:
6367
needs: [ deploy-and-test-r1 ]
6468
if: ${{ !cancelled() && (github.event_name=='schedule' || (github.event_name=='workflow_dispatch' && inputs.release=='latest-main-tag')) }}
6569
steps:
66-
- name: "Checkout code"
70+
- name: "Checkout main branch"
6771
uses: actions/checkout@v5
6872
with:
6973
fetch-depth: 0
@@ -75,6 +79,11 @@ jobs:
7579
echo "value=$(git describe --tags --abbrev=0 --first-parent)" | tee -a $GITHUB_OUTPUT
7680
echo "Latest tag name on main branch is : ${value}"
7781
82+
- name: "Checkout code"
83+
uses: actions/checkout@v5
84+
with:
85+
fetch-depth: 0
86+
7887
- name: "Deploy to AWS (preprod)"
7988
timeout-minutes: 10
8089
uses: ./.github/actions/deploy

0 commit comments

Comments
 (0)