Skip to content

Commit c9a4b3f

Browse files
committed
ci: Auto update Github Action workflows
1 parent a84c161 commit c9a4b3f

File tree

4 files changed

+33
-19
lines changed

4 files changed

+33
-19
lines changed

.github/workflows/module-ci.yml

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# v3.800.13
2-
# https://virtocommerce.atlassian.net/browse/VCST-2789
1+
# v3.800.15
2+
# https://virtocommerce.atlassian.net/browse/VCST-3725
33
name: Module CI
44

55
on:
@@ -55,6 +55,7 @@ jobs:
5555
matrix: ${{ steps.deployment-matrix.outputs.matrix }}
5656
run-e2e: ${{ steps.run-e2e.outputs.result }}
5757
run-ui-tests: ${{ steps.run-ui-tests.outputs.result }}
58+
deployment-folder-exists: ${{ steps.check_deployment_folder.outputs.exists }}
5859

5960
steps:
6061

@@ -92,6 +93,17 @@ jobs:
9293
uses: VirtoCommerce/vc-github-actions/get-image-version@master
9394
id: artifact_ver
9495

96+
- name: Check if .deployment folder exists
97+
id: check_deployment_folder
98+
run: |
99+
if [ -d ".deployment" ]; then
100+
echo "exists=true" >> $GITHUB_OUTPUT
101+
echo "Diagnostic: .deployment folder exists."
102+
else
103+
echo "exists=false" >> $GITHUB_OUTPUT
104+
echo "Diagnostic: .deployment folder does NOT exist."
105+
fi
106+
95107
- name: Set VERSION_SUFFIX variable
96108
run: |
97109
if [ '${{ github.event_name }}' = 'workflow_dispatch' ]; then
@@ -264,7 +276,7 @@ jobs:
264276
if: ${{ ((github.ref == 'refs/heads/dev') && (github.event_name == 'push')) ||
265277
(github.event_name == 'workflow_dispatch') || ((github.base_ref == 'dev') && (github.event_name == 'pull_request')) }}
266278
needs: 'ci'
267-
uses: VirtoCommerce/.github/.github/workflows/ui-autotests.yml@v3.800.13
279+
uses: VirtoCommerce/.github/.github/workflows/ui-autotests.yml@v3.800.15
268280
with:
269281
installModules: 'false'
270282
installCustomModule: 'true'
@@ -278,7 +290,7 @@ jobs:
278290
if: ${{ ((github.ref == 'refs/heads/dev') && (github.event_name == 'push') && (needs.ci.outputs.run-e2e == 'true')) ||
279291
(github.event_name == 'workflow_dispatch') || (github.base_ref == 'dev') && (github.event_name == 'pull_request') }}
280292
needs: 'ci'
281-
uses: VirtoCommerce/.github/.github/workflows/e2e.yml@v3.800.13
293+
uses: VirtoCommerce/.github/.github/workflows/e2e.yml@v3.800.15
282294
with:
283295
katalonRepo: 'VirtoCommerce/vc-quality-gate-katalon'
284296
katalonRepoBranch: 'dev'
@@ -294,9 +306,11 @@ jobs:
294306
katalonApiKey: ${{ secrets.KATALON_API_KEY }}
295307

296308
deploy-cloud:
297-
if: ${{ (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev') && github.event_name == 'push' }}
309+
if: ${{ (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev')
310+
&& github.event_name == 'push'
311+
&& needs.ci.outputs.deployment-folder-exists == 'true'}}
298312
needs: ci
299-
uses: VirtoCommerce/.github/.github/workflows/deploy-cloud.yml@v3.800.13
313+
uses: VirtoCommerce/.github/.github/workflows/deploy-cloud.yml@v3.800.15
300314
with:
301315
releaseSource: module
302316
moduleId: ${{ needs.ci.outputs.moduleId }}

.github/workflows/module-release-hotfix.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# v3.800.13
2-
# https://virtocommerce.atlassian.net/browse/VCST-2789
1+
# v3.800.15
2+
# https://virtocommerce.atlassian.net/browse/VCST-3725
33
name: Release hotfix
44

55
on:
@@ -13,12 +13,12 @@ on:
1313

1414
jobs:
1515
test:
16-
uses: VirtoCommerce/.github/.github/workflows/test-and-sonar.yml@v3.800.13
16+
uses: VirtoCommerce/.github/.github/workflows/test-and-sonar.yml@v3.800.15
1717
secrets:
1818
sonarToken: ${{ secrets.SONAR_TOKEN }}
1919

2020
build:
21-
uses: VirtoCommerce/.github/.github/workflows/build.yml@v3.800.13
21+
uses: VirtoCommerce/.github/.github/workflows/build.yml@v3.800.15
2222
with:
2323
uploadPackage: 'true'
2424
uploadDocker: 'false'
@@ -46,7 +46,7 @@ jobs:
4646
publish-github-release:
4747
needs:
4848
[build, test, get-metadata]
49-
uses: VirtoCommerce/.github/.github/workflows/publish-github.yml@v3.800.13
49+
uses: VirtoCommerce/.github/.github/workflows/publish-github.yml@v3.800.15
5050
with:
5151
fullKey: ${{ needs.build.outputs.packageFullKey }}
5252
changeLog: '${{ needs.get-metadata.outputs.changeLog }}'

.github/workflows/publish-nugets.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# v3.800.13
2-
# https://virtocommerce.atlassian.net/browse/VCST-2789
1+
# v3.800.15
2+
# https://virtocommerce.atlassian.net/browse/VCST-3725
33
name: Publish nuget
44

55
on:
@@ -13,12 +13,12 @@ on:
1313

1414
jobs:
1515
test:
16-
uses: VirtoCommerce/.github/.github/workflows/test-and-sonar.yml@v3.800.13
16+
uses: VirtoCommerce/.github/.github/workflows/test-and-sonar.yml@v3.800.15
1717
secrets:
1818
sonarToken: ${{ secrets.SONAR_TOKEN }}
1919

2020
build:
21-
uses: VirtoCommerce/.github/.github/workflows/build.yml@v3.800.13
21+
uses: VirtoCommerce/.github/.github/workflows/build.yml@v3.800.15
2222
with:
2323
uploadPackage: 'true'
2424
uploadDocker: 'false'
@@ -29,7 +29,7 @@ jobs:
2929
publish-nuget:
3030
needs:
3131
[build, test]
32-
uses: VirtoCommerce/.github/.github/workflows/publish-github.yml@v3.800.13
32+
uses: VirtoCommerce/.github/.github/workflows/publish-github.yml@v3.800.15
3333
with:
3434
fullKey: ${{ needs.build.outputs.packageFullKey }}
3535
forceGithub: false

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# v3.800.13
2-
# https://virtocommerce.atlassian.net/browse/VCST-2789
1+
# v3.800.15
2+
# https://virtocommerce.atlassian.net/browse/VCST-3725
33
name: Release
44

55
on:
66
workflow_dispatch:
77

88
jobs:
99
release:
10-
uses: VirtoCommerce/.github/.github/workflows/release.yml@v3.800.13
10+
uses: VirtoCommerce/.github/.github/workflows/release.yml@v3.800.15
1111
secrets:
1212
envPAT: ${{ secrets.REPO_TOKEN }}

0 commit comments

Comments
 (0)