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:
parent
570a886bab
commit
f2a7902b9c
|
@ -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 }}"
|
||||
}
|
||||
}'
|
||||
|
|
Loading…
Reference in New Issue