Update stage.yml

This commit is contained in:
Matt-Yorkley
2023-08-11 13:30:35 +01:00
committed by GitHub
parent 5afe45d922
commit 6dfeecead1

View File

@@ -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 }}"