From 6dfeecead19bca4d1ecc866403033780d5ef36b5 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Fri, 11 Aug 2023 13:30:35 +0100 Subject: [PATCH] Update stage.yml --- .github/workflows/stage.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/stage.yml b/.github/workflows/stage.yml index 8b1c961ead..3d9715d10b 100644 --- a/.github/workflows/stage.yml +++ b/.github/workflows/stage.yml @@ -13,6 +13,10 @@ on: - staging.openfoodnetwork.org.uk - staging.openfoodnetwork.org.au - staging.coopcircuits.fr + commit_ref: + description: "Commit Reference" + type: string + required: false jobs: deploy_pr: @@ -59,4 +63,4 @@ jobs: - name: Deploy to Staging if: success() run: | - ssh ofn-deploy@${{ inputs.server }} -o LogLevel=ERROR "$GITHUB_REF_NAME $GITHUB_SHA" + ssh ofn-deploy@${{ inputs.server }} -o LogLevel=ERROR "$GITHUB_REF_NAME ${{ inputs.commit_ref || github.event.pull_request.head.sha }}"