Skip to content

Commit

Permalink
ci: Auto update Github Action workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
vc-ci committed Oct 3, 2022
1 parent 6fa773b commit 41464c1
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 14 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/module-ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# v3.200.19
# v3.200.20
name: Module CI

on:
Expand Down Expand Up @@ -52,6 +52,7 @@ jobs:
version: ${{ steps.artifact_ver.outputs.shortVersion }}
moduleId: ${{ steps.artifact_ver.outputs.moduleId }}
matrix: ${{ steps.deployment-matrix.outputs.matrix }}
run-e2e: ${{ steps.run-e2e.outputs.result }}

steps:

Expand Down Expand Up @@ -161,6 +162,16 @@ jobs:
deployConfigPath: '.deployment/module/cloudDeploy.json'
releaseBranch: 'master'

- name: Check commit message for version number
id: run-e2e
run: |
if [[ "${{ github.event.head_commit.message }}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]];
then
echo "::set-output name=result::false"
else
echo "::set-output name=result::true"
fi
- name: Setup Git Credentials
if: ${{ (github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/master') && github.event_name != 'workflow_dispatch' }}
uses: VirtoCommerce/vc-github-actions/setup-git-credentials-github@master
Expand Down Expand Up @@ -220,10 +231,10 @@ jobs:
echo "Jira Upload Build Info response: ${{ steps.push_build_info_to_jira.outputs.response }}"
module-katalon-tests:
if: ${{ ((github.ref == 'refs/heads/dev') && (github.event_name == 'push')) ||
if: ${{ ((github.ref == 'refs/heads/dev') && (github.event_name == 'push') && (needs.ci.outputs.run-e2e == 'true')) ||
(github.event_name == 'workflow_dispatch')}}
needs: 'ci'
uses: VirtoCommerce/.github/.github/workflows/[email protected].19
uses: VirtoCommerce/.github/.github/workflows/[email protected].20
with:
katalonRepo: 'VirtoCommerce/vc-quality-gate-katalon'
katalonRepoBranch: 'dev'
Expand All @@ -243,7 +254,7 @@ jobs:
(github.ref == 'refs/heads/dev')) &&
github.event_name == 'push' }}
needs: ci
uses: VirtoCommerce/.github/.github/workflows/[email protected].19
uses: VirtoCommerce/.github/.github/workflows/[email protected].20
with:
releaseSource: module
moduleId: ${{ needs.ci.outputs.moduleId }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/module-release-hotfix.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# v3.200.19
# v3.200.20
name: Release hotfix

on:
Expand All @@ -12,12 +12,12 @@ on:

jobs:
test:
uses: VirtoCommerce/.github/.github/workflows/[email protected].19
uses: VirtoCommerce/.github/.github/workflows/[email protected].20
secrets:
sonarToken: ${{ secrets.SONAR_TOKEN }}

build:
uses: VirtoCommerce/.github/.github/workflows/[email protected].19
uses: VirtoCommerce/.github/.github/workflows/[email protected].20
with:
uploadPackage: 'true'
uploadDocker: 'false'
Expand All @@ -43,7 +43,7 @@ jobs:
publish-github-release:
needs:
[build, test, get-metadata]
uses: VirtoCommerce/.github/.github/workflows/[email protected].19
uses: VirtoCommerce/.github/.github/workflows/[email protected].20
with:
fullKey: ${{ needs.build.outputs.packageFullKey }}
changeLog: '${{ needs.get-metadata.outputs.changeLog }}'
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish-nugets.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# v3.200.19
# v3.200.20
name: Publish nuget

on:
Expand All @@ -12,12 +12,12 @@ on:

jobs:
test:
uses: VirtoCommerce/.github/.github/workflows/[email protected].19
uses: VirtoCommerce/.github/.github/workflows/[email protected].20
secrets:
sonarToken: ${{ secrets.SONAR_TOKEN }}

build:
uses: VirtoCommerce/.github/.github/workflows/[email protected].19
uses: VirtoCommerce/.github/.github/workflows/[email protected].20
with:
uploadPackage: 'true'
uploadDocker: 'false'
Expand All @@ -28,7 +28,7 @@ jobs:
publish-nuget:
needs:
[build, test]
uses: VirtoCommerce/.github/.github/workflows/[email protected].19
uses: VirtoCommerce/.github/.github/workflows/[email protected].20
with:
fullKey: ${{ needs.build.outputs.packageFullKey }}
forceGithub: false
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# v3.200.19
# v3.200.20
name: Release

on:
workflow_dispatch:

jobs:
release:
uses: VirtoCommerce/.github/.github/workflows/[email protected].19
uses: VirtoCommerce/.github/.github/workflows/[email protected].20
secrets:
envPAT: ${{ secrets.REPO_TOKEN }}

0 comments on commit 41464c1

Please sign in to comment.