Skip to content

Commit

Permalink
update mock github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
lkowalczyk87 committed Jun 24, 2024
1 parent c0aaa9c commit 05daade
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/nexus-mock-pre-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ jobs:
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
run: |
$APP_VERSION = Get-Content -Path "apps/mudita-center/version"
$BUILD_VERSION = "-mock"
$APP_VERSION = (Get-Content -Path "apps/mudita-center/version") + $BUILD_VERSION
$ENVIRONMENT_CATALOG_NAME="mock-pre-production"
echo "GITTAG=$($APP_VERSION)" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
$GITTAG = "$($APP_VERSION)"
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/nexus-mock-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,13 @@ jobs:
if: matrix.os == 'Linux'
run: |
export APP_VERSION=`cat apps/mudita-center/package.json | jq -r .version`
export "BUILD_VERSION=-mock
export BUILD_VERSION=-mock
sed -i "s/\"version\": \".*\",/\"version\": \"$APP_VERSION$BUILD_VERSION\",/" apps/mudita-center/package.json
- name: Changing app version in packages.json for Mac
if: matrix.os == 'macOS'
run: |
export APP_VERSION=`cat apps/mudita-center/package.json | jq -r .version`
export "BUILD_VERSION=-mock
export BUILD_VERSION=-mock
sed -i '' "s/\"version\": \".*\",/\"version\": \"$APP_VERSION$BUILD_VERSION\",/" apps/mudita-center/package.json
- name: Changing app version in packages.json for Windows
if: matrix.os == 'Windows'
Expand Down Expand Up @@ -129,7 +129,8 @@ jobs:
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
run: |
$APP_VERSION = Get-Content -Path "apps/mudita-center/version"
$BUILD_VERSION = "-mock"
$APP_VERSION = (Get-Content -Path "apps/mudita-center/version") + $BUILD_VERSION
$ENVIRONMENT_CATALOG_NAME="mock-production"
echo "GITTAG=$($APP_VERSION)" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
$GITTAG = "$($APP_VERSION)"
Expand Down

0 comments on commit 05daade

Please sign in to comment.