| 1 |
name: Add to Project |
| 2 |
|
| 3 |
on: |
| 4 |
pull_request_target: |
| 5 |
types: |
| 6 |
- opened |
| 7 |
|
| 8 |
concurrency: |
| 9 |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} |
| 10 |
cancel-in-progress: true |
| 11 |
|
| 12 |
permissions: |
| 13 |
contents: read |
| 14 |
|
| 15 |
jobs: |
| 16 |
add_to_project: |
| 17 |
name: Add pull request to project |
| 18 |
if: '!github.event.repository.fork' |
| 19 |
runs-on: ubuntu-slim |
| 20 |
steps: |
| 21 |
- uses: actions/add-to-project@5afcf98fcd03f1c2f92c3c83f58ae24323cc57fd # v2.0.0 |
| 22 |
with: |
| 23 |
# PRs are added to the Review project |
| 24 |
project-url: https://github.com/orgs/conda/projects/16 |
| 25 |
github-token: ${{ secrets.PROJECT_TOKEN }} |