docs(core): example manifest file #36
Workflow file for this run
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: Danger | |
| on: | |
| pull_request: | |
| types: [ synchronize, opened, reopened, edited ] | |
| jobs: | |
| build: | |
| if: ${{ github.event.pull_request.head.repo.full_name == github.repository }} # Only run on non-forked PRs | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@master | |
| - name: Use Node.js 22.x | |
| uses: actions/setup-node@master | |
| with: | |
| node-version: 22.x | |
| - name: install danger | |
| run: yarn global add danger | |
| - name: Validate PR title validation rules | |
| working-directory: ./ci/validate-pr-title | |
| run: node validate.test.js | |
| - name: Danger | |
| run: danger ci | |
| working-directory: ./ci/validate-pr-title | |
| env: | |
| DANGER_GITHUB_API_TOKEN: ${{ secrets.DANGER_GITHUB_TOKEN }} |