Skip to content

Commit

Permalink
add version
Browse files Browse the repository at this point in the history
  • Loading branch information
szczecha committed Jan 28, 2025
1 parent 3fa9712 commit 7cd79fa
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/pr-automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ jobs:
outputs:
ACCOUNTS: ${{ steps.accounts.outputs.ACCOUNTS }}
TESTMO_RUN_ID: ${{ steps.init-testmo.outputs.testmo-run-id }}
DASHBOARD_VERSION: ${{ steps.build-dashboard.outputs.DASHBOARD_VERSION }}
runs-on: ubuntu-22.04
needs: initialize-cloud
permissions:
Expand Down Expand Up @@ -111,6 +112,7 @@ jobs:
run: npm ci

- name: Build dashboard
id: build-dashboard
env:
## backward compatibility for older versions
API_URI: ${{ needs.initialize-cloud.outputs.API_URL }}
Expand All @@ -123,7 +125,13 @@ jobs:
STATIC_URL: /
IS_CLOUD_INSTANCE: true
ONBOARDING_USER_JOINED_DATE_THRESHOLD: ${{ vars.STAGING_ONBOARDING_USER_JOINED_DATE_THRESHOLD }}
run: npm run build
run: |
npm run build
# Extract version from package.json
VERSION=$(node -p "require('./package.json').version")
echo "VERSION=$VERSION"
echo "VERSION=$VERSION" >> $GITHUB_ENV
echo "DASHBOARD_VERSION=$VERSION" >> $GITHUB_OUTPUT
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v3
Expand Down Expand Up @@ -202,10 +210,9 @@ jobs:
PW_RETRIES: ${{ vars.PW_RETRIES }}
ACCOUNTS: ${{ needs.deploy-dashboard.outputs.ACCOUNTS }}
E2E_ENCODE_PASS: ${{ secrets.E2E_ENCODE_PASS }}
DASHBOARD_VERSION: "3.20.0"
DASHBOARD_VERSION: ${{ needs.deploy-dashboard.outputs.DASHBOARD_VERSION }}
BRANCH_NAME: ${{ github.ref}}
SALEOR_CLOUD_SERVICE: ${{ steps.cloud_variables.outputs.SALEOR_CLOUD_SERVICE }}

SALEOR_CLOUD_SERVICE: ${{ needs.cloud_variables.outputs.SALEOR_CLOUD_SERVICE }}
- name: submit-results-to-testmo
if: always()
uses: ./.github/actions/testmo/testmo-threads-submit-playwright
Expand Down

0 comments on commit 7cd79fa

Please sign in to comment.