diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a6f1450..3c47847 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -18,6 +18,9 @@ jobs: -f "ref=production" \ -f "environment=production" DEPLOYMENT_ID=$(gh api /repos/ParzivalEugene/michkoff-links/deployments | jq -r '.[0].id') + env: + DEPLOYMENT_ID: ${{ steps.create.outputs.DEPLOYMENT_ID }} + GH_TOKEN: ${{ github.token }} - name: Create new deployment status run: | @@ -26,6 +29,9 @@ jobs: /repos/${{ github.repository }}/deployments/${{ env.DEPLOYMENT_ID }}/statuses \ -f "state=pending" -f "auto_inactive=true" + env: + DEPLOYMENT_ID: ${{ steps.create.outputs.DEPLOYMENT_ID }} + GH_TOKEN: ${{ github.token }} - name: Fake deployment run: | @@ -38,3 +44,6 @@ jobs: /repos/${{ github.repository }}/deployments/${{ env.DEPLOYMENT_ID }}/statuses \ -f "state=success" -f "auto_inactive=true" + env: + DEPLOYMENT_ID: ${{ steps.create.outputs.DEPLOYMENT_ID }} + GH_TOKEN: ${{ github.token }}