|
|
|
@ -16,6 +16,7 @@ jobs: |
|
|
|
|
contents: read |
|
|
|
|
outputs: |
|
|
|
|
changed: ${{ steps.detect-changes.outputs.frontend }} |
|
|
|
|
prettier: ${{ steps.detect-changes.outputs.frontend == 'true' || steps.detect-changes.outputs.docs == 'true' }} |
|
|
|
|
steps: |
|
|
|
|
- uses: actions/checkout@v4 |
|
|
|
|
with: |
|
|
|
@ -34,7 +35,7 @@ jobs: |
|
|
|
|
id-token: write |
|
|
|
|
# Run this workflow only for PRs from forks; if it gets merged into `main` or `release-*`, |
|
|
|
|
# the `lint-frontend-prettier-enterprise` workflow will run instead |
|
|
|
|
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == true && needs.detect-changes.outputs.changed == 'true' |
|
|
|
|
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == true && needs.detect-changes.outputs.prettier == 'true' |
|
|
|
|
name: Lint |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
steps: |
|
|
|
@ -55,7 +56,7 @@ jobs: |
|
|
|
|
contents: read |
|
|
|
|
id-token: write |
|
|
|
|
# Run this workflow for non-PR events (like pushes to `main` or `release-*`) OR for internal PRs (PRs not from forks) |
|
|
|
|
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false && needs.detect-changes.outputs.changed == 'true' |
|
|
|
|
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false && needs.detect-changes.outputs.prettier == 'true' |
|
|
|
|
name: Lint |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
steps: |
|
|
|
|