feat(images): change preview image on post and home page based on lig… #341
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: PR Filter | |
| on: | |
| pull_request_target: | |
| types: [opened, reopened] | |
| jobs: | |
| check-template: | |
| if: github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pull-requests: write | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v5 | |
| - name: Check PR Content | |
| id: intercept | |
| uses: actions/github-script@v8 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| script: | | |
| const { default: filter } = await import('${{ github.workspace }}/.github/workflows/scripts/pr-filter.js'); | |
| await filter({ github, context, core }); |