Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegoO committed Jul 20, 2023
1 parent 1c653a2 commit 11b8734
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 19 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/module-ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# v3.200.24
# v3.200.30
name: Module CI

on:
Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:
steps:

- name: Set up Node 18
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: '18'

Expand Down Expand Up @@ -154,9 +154,9 @@ jobs:
id: artifactUrl
run: |
if [ '${{ github.ref }}' = 'refs/heads/master' ]; then
echo ::set-output name=download_url::${{ steps.githubRelease.outputs.downloadUrl }}
echo "download_url=${{ steps.githubRelease.outputs.downloadUrl }}" >> $GITHUB_OUTPUT
else
echo ::set-output name=download_url::${{ steps.blobRelease.outputs.packageUrl }}
echo "download_url=${{ steps.blobRelease.outputs.packageUrl }}" >> $GITHUB_OUTPUT
fi;
- name: Create deployment matrix
Expand All @@ -172,9 +172,9 @@ jobs:
run: |
if [[ "${{ github.event.head_commit.message }}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]];
then
echo "::set-output name=result::false"
echo "result=false" >> $GITHUB_OUTPUT
else
echo "::set-output name=result::true"
echo "result=true" >> $GITHUB_OUTPUT
fi
- name: Setup Git Credentials
Expand Down Expand Up @@ -213,7 +213,7 @@ jobs:
- name: Push Build Info to Jira
if: ${{ env.CLOUD_INSTANCE_BASE_URL != 0 && env.CLIENT_ID != 0 && env.CLIENT_SECRET != 0 && steps.jira_keys.outputs.jira-keys != '' && always() }}
id: push_build_info_to_jira
uses: HighwayThree/jira-upload-build-info@master
uses: VirtoCommerce/jira-upload-build-info@master
with:
cloud-instance-base-url: '${{ secrets.CLOUD_INSTANCE_BASE_URL }}'
client-id: '${{ secrets.CLIENT_ID }}'
Expand All @@ -239,7 +239,7 @@ jobs:
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/e2e.yml@v3.200.24
uses: VirtoCommerce/.github/.github/workflows/e2e.yml@v3.200.30
with:
katalonRepo: 'VirtoCommerce/vc-quality-gate-katalon'
katalonRepoBranch: 'dev'
Expand All @@ -259,7 +259,7 @@ jobs:
(github.ref == 'refs/heads/dev')) &&
github.event_name == 'push' }}
needs: ci
uses: VirtoCommerce/.github/.github/workflows/deploy-cloud.yml@v3.200.24
uses: VirtoCommerce/.github/.github/workflows/deploy-cloud.yml@v3.200.30
with:
releaseSource: module
moduleId: ${{ needs.ci.outputs.moduleId }}
Expand Down
10 changes: 6 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.24
# v3.200.30
name: Release hotfix

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

jobs:
test:
uses: VirtoCommerce/.github/.github/workflows/test-and-sonar.yml@v3.200.24
uses: VirtoCommerce/.github/.github/workflows/test-and-sonar.yml@v3.200.30
secrets:
sonarToken: ${{ secrets.SONAR_TOKEN }}

build:
uses: VirtoCommerce/.github/.github/workflows/build.yml@v3.200.24
uses: VirtoCommerce/.github/.github/workflows/build.yml@v3.200.30
with:
uploadPackage: 'true'
uploadDocker: 'false'
Expand All @@ -28,6 +28,8 @@ jobs:

get-metadata:
runs-on: ubuntu-20.04
env:
GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }}
outputs:
changelog: ${{ steps.changelog.outputs.changelog }}
steps:
Expand All @@ -43,7 +45,7 @@ jobs:
publish-github-release:
needs:
[build, test, get-metadata]
uses: VirtoCommerce/.github/.github/workflows/publish-github.yml@v3.200.24
uses: VirtoCommerce/.github/.github/workflows/publish-github.yml@v3.200.30
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.24
# v3.200.30
name: Publish nuget

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

jobs:
test:
uses: VirtoCommerce/.github/.github/workflows/test-and-sonar.yml@v3.200.24
uses: VirtoCommerce/.github/.github/workflows/test-and-sonar.yml@v3.200.30
secrets:
sonarToken: ${{ secrets.SONAR_TOKEN }}

build:
uses: VirtoCommerce/.github/.github/workflows/build.yml@v3.200.24
uses: VirtoCommerce/.github/.github/workflows/build.yml@v3.200.30
with:
uploadPackage: 'true'
uploadDocker: 'false'
Expand All @@ -28,7 +28,7 @@ jobs:
publish-nuget:
needs:
[build, test]
uses: VirtoCommerce/.github/.github/workflows/publish-github.yml@v3.200.24
uses: VirtoCommerce/.github/.github/workflows/publish-github.yml@v3.200.30
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.24
# v3.200.30
name: Release

on:
workflow_dispatch:

jobs:
release:
uses: VirtoCommerce/.github/.github/workflows/release.yml@v3.200.24
uses: VirtoCommerce/.github/.github/workflows/release.yml@v3.200.30
secrets:
envPAT: ${{ secrets.REPO_TOKEN }}

0 comments on commit 11b8734

Please sign in to comment.