Skip to content

Commit 76fde3b

Browse files
committed
ci(content): update "Deploy Content"
1 parent d8deda3 commit 76fde3b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/deploy-content.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ concurrency:
1212
env:
1313
STAGE: ${{ github.ref == 'refs/heads/main' && 'prod' || format('pr-{0}', github.event.number) }}
1414
COMMAND: ${{ github.event_name == 'pull_request' && github.event.action == 'closed' && 'destroy' || 'deploy' }}
15-
SHA: ${{ github.event.pull_request.head.sha || github.sha }}
1615

1716
jobs:
1817
deploy-or-destroy:
@@ -24,7 +23,7 @@ jobs:
2423
steps:
2524
- uses: actions/checkout@v4
2625
with:
27-
ref: ${{ env.SHA }}
26+
ref: ${{ github.sha }}
2827

2928
- uses: pnpm/action-setup@v4
3029

@@ -40,5 +39,5 @@ jobs:
4039
ALCHEMY_STATE_TOKEN: ${{ secrets.ALCHEMY_STATE_TOKEN }}
4140
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
4241
PULL_REQUEST: ${{ github.event.number }}
43-
GITHUB_SHA: ${{ env.SHA }}
42+
GITHUB_SHA: ${{ github.sha }}
4443
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)