diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 694e5f6..c9e88dc 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -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