Skip to content

Commit

Permalink
build: Add version check
Browse files Browse the repository at this point in the history
  • Loading branch information
O-Isaac authored Nov 21, 2024
1 parent c712f2d commit 95f4794
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
echo "VERSION=$version" | Out-File -Append -FilePath $env:GITHUB_ENV
- name: Compare Version with app.json
run: |
$appVersion = (Get-Content -Path "app.json" | ConvertFrom-Json).appVer
$appVersion = (Get-Content -Path "${{ matrix.region }}.json" | ConvertFrom-Json).appVer
$envVersion = $env:VERSION
if ($appVersion -eq $envVersion) {
echo "Versions match! No need to update the code. ✅"
Expand Down

0 comments on commit 95f4794

Please sign in to comment.