From f643dd224e0e4e2bc8fa08e38224993ee3b3c13b Mon Sep 17 00:00:00 2001 From: Julien Loisel Date: Fri, 9 Aug 2024 11:31:52 +0200 Subject: [PATCH] fix: add good extension for stagings - refacto and use GITHUB_OUTPUT --- .github/workflows/deploy-staging.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index 7d27a61..114a389 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -29,6 +29,7 @@ on: jobs: set-url: + name: Prepare URL runs-on: ubuntu-latest outputs: url: ${{ steps.set-url.outputs.url }} @@ -37,12 +38,13 @@ jobs: id: set-url run: | if [ "${{ matrix.target }}" == "lemon" ]; then - echo "::set-output name=url::https://staging-${{ inputs.name }}.${{ matrix.target }}.fr" + DOMAIN="fr" elif [ "${{ matrix.target }}" == "traack" ]; then - echo "::set-output name=url::https://staging-${{ inputs.name }}.${{ matrix.target }}.io" + DOMAIN="io" else - echo "::set-output name=url::https://staging-${{ inputs.name }}.${{ matrix.target }}.com" + DOMAIN="com" fi + echo "name=url::https://staging-${{ inputs.name }}.${{ matrix.target }}.$DOMAIN" >> $GITHUB_OUTPUT deploy: name: Deploy Staging