Skip to content

Commit

Permalink
Use outputs instead of env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
Boubker Bribri committed Mar 16, 2021
1 parent 929ddef commit d56a3e3
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/e2e_nightly_upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,14 @@ jobs:

- id: set-target-versions
shell: bash
run: echo "TARGET_VERSIONS=$(node ./scripts/getTargetVersions.js)" >> $GITHUB_ENV
run: echo "::set-output name=TARGET_VERSIONS::$(node ./scripts/getTargetVersions.js)"
env:
API_URL: https://api-nightly.prestashop.com/reports
working-directory: ./tests/e2e

outputs:
target_versions: ${{ steps.set-target-versions.outputs.TARGET_VERSIONS }}

# First job: upgrade
upgrade:
name: Testing Autoupgrade module on UI
Expand All @@ -45,12 +48,12 @@ jobs:
env:
nightly_storage: https://storage.googleapis.com/prestashop-core-nightly

# Testing upgrade from "1.7.4.4", "1.7.5.2", "1.7.6.9", "1.7.7.1" to the last "1.7.7.x" and "1.7.8.x" (develop)
# Testing upgrade from '1.7.4.4', '1.7.5.2', '1.7.6.9', '1.7.7.1' to the last '1.7.7.x' and '1.7.8.x'(develop)
strategy:
matrix:
ps_start_version: ["1.7.4.4", "1.7.5.2", "1.7.6.9", "1.7.7.1"]
ps_start_version: ['1.7.4.4', '1.7.5.2', '1.7.6.9', '1.7.7.1']

ps_target_version: ${{ fromJson(env.TARGET_VERSIONS) }}
ps_target_version: ${{ fromJson(needs.get_ps_target_versions.outputs.target_versions) }}

fail-fast: false

Expand Down

0 comments on commit d56a3e3

Please sign in to comment.