Skip to content

Commit a50d9bf

Browse files
Remove "post published URL to PR" action from pr-deploy (#1391)
1 parent e5bd89b commit a50d9bf

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

.github/workflows/pr-deploy.yml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -128,20 +128,3 @@ jobs:
128128
AWS_REGION: 'eu-west-1'
129129
DISTRIBUTION: ${{ secrets.PR_CI_CLOUDFRONT_DISTRIBUTION_ID }}
130130
PATHS: '/docs/*'
131-
132-
- name: Post published URL to PR
133-
# Run only if we did not skip the upload step and it's the first run for this PR.
134-
if: steps.upload.outcome == 'success' && github.event.action == 'opened'
135-
uses: actions/github-script@v6
136-
with:
137-
github-token: ${{secrets.GITHUB_TOKEN}}
138-
script: |
139-
github.rest.issues.createComment({
140-
issue_number: context.payload.number,
141-
owner: context.repo.owner,
142-
repo: context.repo.repo,
143-
body:
144-
"There's a version of the docs published here:\n\n" +
145-
`${process.env.GATSBY_DEFAULT_DOC_URL}\n\n` +
146-
'It will be deleted automatically in 30 days.',
147-
})

0 commit comments

Comments
 (0)