From 57451f2639f4c68a9e39b4dbd270c6cb0eed5f85 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Thu, 15 Jun 2023 23:26:27 +0100 Subject: [PATCH] Update stage.yml --- .github/workflows/stage.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/stage.yml b/.github/workflows/stage.yml index d85a746586..6397a8b2a4 100644 --- a/.github/workflows/stage.yml +++ b/.github/workflows/stage.yml @@ -30,15 +30,14 @@ jobs: - name: Deploy to Staging env: - BRANCH_NAME: pull-request-${{ github.event.pull_request.number }} LABEL: ${{ github.event.label.name }} run: | if [[ $LABEL == 'pr-staged-uk' ]]; then - ssh ofn-deploy@staging.openfoodnetwork.org.uk -o LogLevel=ERROR "${BRANCH_NAME}" + ssh ofn-deploy@staging.openfoodnetwork.org.uk -o LogLevel=ERROR "pull-request-${{ github.event.pull_request.number }} ." elif [[ $LABEL == 'pr-staged-au' ]]; then - ssh ofn-deploy@staging.openfoodnetwork.org.au -o LogLevel=ERROR "${BRANCH_NAME}" + ssh ofn-deploy@staging.openfoodnetwork.org.au -o LogLevel=ERROR "pull-request-${{ github.event.pull_request.number }} ." elif [[ $LABEL == 'pr-staged-fr' ]]; then - ssh ofn-deploy@staging.coopcircuits.fr -o LogLevel=ERROR "${BRANCH_NAME}" + ssh ofn-deploy@staging.coopcircuits.fr -o LogLevel=ERROR "pull-request-${{ github.event.pull_request.number }} ." fi deploy_branch: @@ -53,4 +52,4 @@ jobs: - name: Deploy to Staging run: | - ssh ofn-deploy@${{ inputs.server }} -o LogLevel=ERROR "${GITHUB_HEAD_REF}" + ssh ofn-deploy@${{ inputs.server }} -o LogLevel=ERROR "$GITHUB_REF $GITHUB_SHA"