.github/workflows/project.yml
raw| 1 | name: Add to Project |
| 2 | |
| 3 | on: |
| 4 | pull_request_target: |
| 5 | types: |
| 6 | - opened |
| 7 | |
| 8 | permissions: |
| 9 | contents: read |
| 10 | |
| 11 | jobs: |
| 12 | add_to_project: |
| 13 | if: '!github.event.repository.fork' |
| 14 | runs-on: ubuntu-slim |
| 15 | steps: |
| 16 | - uses: actions/add-to-project@5afcf98fcd03f1c2f92c3c83f58ae24323cc57fd # v2.0.0 |
| 17 | with: |
| 18 | # PRs are added to the Review project |
| 19 | project-url: https://github.com/orgs/conda/projects/16 |
| 20 | github-token: ${{ secrets.PROJECT_TOKEN }} |