diff --git a/.github/workflows/preview-info.yml b/.github/workflows/preview-info.yml index 6349903c99..63be43ab36 100644 --- a/.github/workflows/preview-info.yml +++ b/.github/workflows/preview-info.yml @@ -2,6 +2,7 @@ name: Show preview on PRs on: pull_request: + types: [opened] env: GH_TOKEN: ${{ secrets.MEILI_BOT_GH_PAT }} @@ -15,10 +16,10 @@ jobs: - name: Prepare comment content run: | echo '# How to see the preview of the PR?' >> comment.txt - echo '' > comment.txt + echo '' >> comment.txt echo '⚠️ Accessible for internal Meili people only.' >> comment.txt echo '' >> comment.txt - echo "Go to this URL: https://website-git-deploy-preview-mei-16-meili.vercel.app/docs/branch%3A$CURRENT_BRANCH" > comment.txt + echo "Go to this URL: https://website-git-deploy-preview-mei-16-meili.vercel.app/docs/branch%3A$CURRENT_BRANCH" >> comment.txt echo '' >> comment.txt echo "Credentials to access the page are in the company\'s password manager as \"Docs deploy preview\"." >> comment.txt - name: Add comment to PR with preview information