From b20d19160eb8f7018501357b1963b87fec9fb7ec Mon Sep 17 00:00:00 2001 From: Eugene Michkov Date: Mon, 26 Aug 2024 22:46:44 +0300 Subject: [PATCH] ci: fix --- .github/workflows/deploy.yml | 9 +++++++++ 1 file changed, 9 insertions(+) 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 }}