Skip to content

Commit

Permalink
Remove "post published URL to PR" action from pr-deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
heitortsergent committed Nov 1, 2023
1 parent e5bd89b commit 8f8cf7a
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions .github/workflows/pr-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,20 +128,3 @@ jobs:
AWS_REGION: 'eu-west-1'
DISTRIBUTION: ${{ secrets.PR_CI_CLOUDFRONT_DISTRIBUTION_ID }}
PATHS: '/docs/*'

- name: Post published URL to PR
# Run only if we did not skip the upload step and it's the first run for this PR.
if: steps.upload.outcome == 'success' && github.event.action == 'opened'
uses: actions/github-script@v6
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.rest.issues.createComment({
issue_number: context.payload.number,
owner: context.repo.owner,
repo: context.repo.repo,
body:
"There's a version of the docs published here:\n\n" +
`${process.env.GATSBY_DEFAULT_DOC_URL}\n\n` +
'It will be deleted automatically in 30 days.',
})

0 comments on commit 8f8cf7a

Please sign in to comment.