diff --git a/.github/workflows/review-comment.yml b/.github/workflows/review-comment.yml index 4b7643b6d6..f58298bad8 100644 --- a/.github/workflows/review-comment.yml +++ b/.github/workflows/review-comment.yml @@ -10,6 +10,15 @@ on: types: - opened - synchronize + paths-ignore: + - '.github/workflows/review-comment.yml' + # For reviewing changes to this workflow + pull_request: + types: + - opened + - synchronize + paths: + - '.github/workflows/review-comment.yml' permissions: contents: read @@ -36,7 +45,7 @@ jobs: run: | if [[ "${{ github.repository }}" == "github/docs-internal" ]]; then echo "APP_URL=https://docs-review.github.com" >> $GITHUB_ENV - elif [[ "${{ github.repository }}" == "github/docs" ]]; then + elif [[ "${{ github.repository }}" == 'github/docs' ]]; then echo "APP_URL=https://os-docs-review.github.com" >> $GITHUB_ENV fi - name: Find code changes comment @@ -72,12 +81,12 @@ jobs: * [Spin up a codespace][codespace] * [Set up a local development environment][local] - ${{ github.repository == "github/docs" && '' || '* Message `#docs-engineering` on Slack for a staging server.' }} + ${{ github.repository == 'github/docs' && '' || '* Message `#docs-engineering` on Slack for a staging server.' }} - [codespace]: ${{ github.repository == "github/docs" && 'https://docs.github.com/en/contributing/setting-up-your-environment-to-work-on-github-docs/working-on-github-docs-in-a-codespace' || 'https://github.com/github/docs-team/blob/main/contributing-to-docs/use-a-codespace-to-review.md' }} + [codespace]: ${{ github.repository == 'github/docs' && 'https://docs.github.com/en/contributing/setting-up-your-environment-to-work-on-github-docs/working-on-github-docs-in-a-codespace' || 'https://github.com/github/docs-team/blob/main/contributing-to-docs/use-a-codespace-to-review.md' }} [local]: https://docs.github.com/en/contributing/setting-up-your-environment-to-work-on-github-docs/creating-a-local-environment#setting-up-your-local-environment - ${{ github.repository == "github/docs" && 'A Hubber will need to deploy your changes internally to review.' || '' }} + ${{ github.repository == 'github/docs' && 'A Hubber will need to deploy your changes internally to review.' || '' }}
Table of review links