@@ -16,6 +16,7 @@ concurrency:
1616jobs :
1717 deploy-preview :
1818 if : >-
19+ github.repository_owner == 'withastro' &&
1920 github.event.workflow_run.event == 'pull_request' &&
2021 github.event.workflow_run.conclusion == 'success'
2122 runs-on : ubuntu-latest
2425 pull-requests : write
2526 steps :
2627 - name : Download PR metadata
27- uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
28+ uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
2829 with :
2930 name : pr-metadata
3031 run-id : ${{ github.event.workflow_run.id }}
3940 echo "preview_url=$(cat pr-metadata/preview_url)" >> "$GITHUB_OUTPUT"
4041
4142 - name : Comment deployment in progress
42- uses : actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.1 .0
43+ uses : actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0 .0
4344 with :
4445 script : |
4546 const prNumber = parseInt('${{ steps.metadata.outputs.pr_number }}', 10);
7475 }
7576
7677 - name : Download build output
77- uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
78+ uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
7879 with :
7980 name : build-output
8081 run-id : ${{ github.event.workflow_run.id }}
9091
9192 - name : Comment deployment complete
9293 if : success()
93- uses : actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.1 .0
94+ uses : actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0 .0
9495 with :
9596 script : |
9697 const prNumber = parseInt('${{ steps.metadata.outputs.pr_number }}', 10);
@@ -119,7 +120,7 @@ jobs:
119120
120121 - name : Comment deployment failed
121122 if : failure()
122- uses : actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.1 .0
123+ uses : actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0 .0
123124 with :
124125 script : |
125126 const prNumber = parseInt('${{ steps.metadata.outputs.pr_number }}', 10);
0 commit comments