Fix automatic deployment update (#452)

* Fix automatic deployment update

Couldn't fix it before because I couldn't run it yet.

* Add required ref
This commit is contained in:
Bruno Bernardino 2022-05-20 15:58:13 +01:00 committed by GitHub
parent 570a886bab
commit f2a7902b9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -25,6 +25,8 @@ on:
jobs:
trigger-gh-action:
runs-on: ubuntu-latest
env:
DEPLOY_BRANCH: ${{ github.event.inputs.instance || 'test' }}
steps:
- name: Trigger GH Action
run: |
@ -33,8 +35,9 @@ jobs:
--header 'Authorization: Basic ${{ secrets.DEVOPS_BASIC_AUTH_TOKEN }}' \
--header 'Content-Type: application/json' \
--data '{
"ref": "main",
"inputs": {
"instance": "${{ github.event.inputs.instance || \'test\' }}",
"instance": "${{ env.DEPLOY_BRANCH }}",
"branch": "${{ github.sha }}"
}
}'