Skip to content

Commit

Permalink
ci: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ParzivalEugene committed Aug 26, 2024
1 parent 747b272 commit b20d191
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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: |
Expand All @@ -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 }}

0 comments on commit b20d191

Please sign in to comment.