diff options
| author | Menny Even Danan <menny@evendanan.net> | 2020-02-07 16:08:33 +0000 |
|---|---|---|
| committer | Menny Even Danan <menny@evendanan.net> | 2020-02-07 16:52:27 +0000 |
| commit | 99baa6573b5a290c2fe7132e7ed78b5ebd8917f7 (patch) | |
| tree | 719f8db199507f28379f7d4361e62b9c08615c13 /.github/actions | |
| parent | 2a40627c3dfa34cad3af98de13fa76adddd20391 (diff) | |
| download | AnySoftKeyboard-99baa6573b5a290c2fe7132e7ed78b5ebd8917f7.tar.gz AnySoftKeyboard-99baa6573b5a290c2fe7132e7ed78b5ebd8917f7.tar.bz2 | |
Correcting github deployment event call
Diffstat (limited to '.github/actions')
| -rw-r--r-- | .github/actions/deploy-request/action.yml | 6 | ||||
| -rwxr-xr-x | .github/actions/deploy-request/request.sh | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/.github/actions/deploy-request/action.yml b/.github/actions/deploy-request/action.yml index 9703b66ad..6fc9b2ef8 100644 --- a/.github/actions/deploy-request/action.yml +++ b/.github/actions/deploy-request/action.yml @@ -4,7 +4,10 @@ description: "Performs a deploy request" inputs: ref: - description: "ref to publish" + description: "ref (branch) to publish" + required: true + sha: + description: "commit to deploy" required: true api_user_name: description: "the username to use for API calls" @@ -23,6 +26,7 @@ runs: args: - .github/actions/deploy-request/request.sh - ${{ inputs.ref }} + - ${{ inputs.sha }} - ${{ inputs.api_user_name }} - ${{ inputs.api_user_token }} - ${{ inputs.reports_folder }} diff --git a/.github/actions/deploy-request/request.sh b/.github/actions/deploy-request/request.sh index 8ae0685f5..9002fb399 100755 --- a/.github/actions/deploy-request/request.sh +++ b/.github/actions/deploy-request/request.sh @@ -2,6 +2,8 @@ set -e REF_TO_DEPLOY="${1}" +#we are using exact SHA to deploy, and not branc (which can move) +SHA_TO_DEPLOY="${1}" API_USERNAME="${2}" API_TOKEN="${3}" OUTPUT="${4}" @@ -14,7 +16,7 @@ function deployment_request() { echo "making request to: ${1}" local JSON_TEXT JSON_TEXT=$( jq -n \ - --arg jsonRef "${REF_TO_DEPLOY}" \ + --arg jsonRef "${SHA_TO_DEPLOY}" \ --arg jsonDeployTarget "${1}" \ --arg jsonDescription "${2}" \ '{ ref: $jsonRef, task: "deploy", auto_merge: false, environment: $jsonDeployTarget, description: $jsonDescription, required_contexts: [ "push-ready" ] }' ) |
