Update .github/workflows/CI.yml
This commit is contained in:
20
.github/workflows/CI.yml
vendored
20
.github/workflows/CI.yml
vendored
@ -102,16 +102,16 @@ jobs:
|
||||
# ${{env.VERSION_TAG}}
|
||||
# ${{env.LASTEST_TAG}}
|
||||
|
||||
- name: Auto Execute a Workflow
|
||||
run: |
|
||||
curl -X 'POST' \
|
||||
'http://10.10.11.26:8090/api/v1/repos/${{ github.repository_owner }}/${{ github.repository.name }}/actions/workflows/CD.yml/dispatches' \
|
||||
-H 'Accept: application/json' \
|
||||
-H 'Content-Type: application/json' \
|
||||
-H 'Authorization: Basic ${{ echo -n "secrets.SECRET_USERNAME:secrets.SECRET_PASSWORD" | base64 }}' \
|
||||
-H 'Authorization: token ${{ secrets.GHA_TOKEN }}' \
|
||||
-d '{"ref":"${{ github.ref }}","inputs":{"Version":"${{ steps.vars.outputs.sha_short }}","Env":"${{ github.ref_name}}"}}'
|
||||
shell: bash
|
||||
- name: Auto Execute a Workflow
|
||||
run: |
|
||||
curl -X 'POST' \
|
||||
'http://10.10.11.26:8090/api/v1/repos/${{ github.repository_owner }}/${{ github.repository.name }}/actions/workflows/CD.yml/dispatches' \
|
||||
-H 'Accept: application/json' \
|
||||
-H 'Content-Type: application/json' \
|
||||
-H 'Authorization: Basic ${{ echo -n "secrets.SECRET_USERNAME:secrets.SECRET_PASSWORD" | base64 }}' \
|
||||
-H 'Authorization: token ${{ secrets.GHA_TOKEN }}' \
|
||||
-d '{"ref":"${{ github.ref }}","inputs":{"Version":"${{ steps.vars.outputs.sha_short }}","Env":"${{ github.ref_name}}"}}'
|
||||
shell: bash
|
||||
# - name: Auto Deploy (Dev)
|
||||
## if: ${{ contains(github.ref, 'develop') and env.AUTO_DEPLOY_DEV == 'true' }}
|
||||
# id: auto-deploy-dev
|
||||
|
Reference in New Issue
Block a user