We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ddb811 commit 7645f5fCopy full SHA for 7645f5f
1 file changed
.github/workflows/deploy-preview-app.yml
@@ -394,7 +394,7 @@ jobs:
394
if: always()
395
uses: actions/github-script@v7
396
with:
397
- github-token: ${{ secrets.GITHUB_TOKEN }}
+ github-token: ${{ secrets.GH_PAT || secrets.GITHUB_TOKEN }}
398
script: |
399
const { data: deployments } = await github.rest.repos.listDeployments({
400
owner: context.repo.owner,
@@ -411,6 +411,11 @@ jobs:
411
state: 'inactive',
412
description: 'Preview environment removed'
413
});
414
+ await github.rest.repos.deleteDeployment({
415
+ owner: context.repo.owner,
416
+ repo: context.repo.repo,
417
+ deployment_id: deployment.id
418
+ });
419
}
420
421
try {
0 commit comments