From 8f8cf7ab04119c9093f85aa39bf5becc181ec30e Mon Sep 17 00:00:00 2001 From: Heitor Tashiro Sergent Date: Wed, 1 Nov 2023 13:04:35 -0500 Subject: [PATCH] Remove "post published URL to PR" action from pr-deploy --- .github/workflows/pr-deploy.yml | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/.github/workflows/pr-deploy.yml b/.github/workflows/pr-deploy.yml index 260750af10..884200e72d 100644 --- a/.github/workflows/pr-deploy.yml +++ b/.github/workflows/pr-deploy.yml @@ -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.', - })