diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 225a5656..4849cc5b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -8,12 +8,14 @@ on: jobs: deploy-to-test-env: runs-on: ubuntu-latest - environment: - name: test + environment: Test name: deploy-to-test steps: - uses: kachick/wait-other-jobs@v3.6.0 timeout-minutes: 24 + env: + TOKEN: ${{ secrets.DIGITAL_OCEAN_TOKEN }} + APP_ID: ${{ secrets.DIGITAL_OCEAN_APP_ID }} with: wait-list: | [ @@ -31,4 +33,4 @@ jobs: } ] - run: | - curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer ${{ secrets.DIGITAL_OCEAN_TOKEN }}" "https://api.digitalocean.com/v2/apps/${{ secrets.DIGITAL_OCEAN_APP_ID }}/deployments" -d '{ "force_build": true }' | jq -e .deployment.id + curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" --url "https://api.digitalocean.com/v2/apps/$APP_ID/deployments" -d '{ "force_build": true }' | jq -e .deployment.id