25 lines
727 B
YAML
25 lines
727 B
YAML
name: Add new PRs to project
|
|
|
|
on:
|
|
pull_request_target:
|
|
types:
|
|
- opened
|
|
|
|
jobs:
|
|
add-to-project:
|
|
name: Add new PR to project
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Generate app token
|
|
id: token
|
|
# Pinned to a specific version of the action for security reasons
|
|
uses: tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92 # v1.8.0
|
|
with:
|
|
app_id: ${{ secrets.PROJECTS_APP_ID }}
|
|
private_key: ${{ secrets.PROJECTS_APP_PEM }}
|
|
- name: Add to Project
|
|
uses: actions/add-to-project@v0.5.0
|
|
with:
|
|
project-url: https://github.com/orgs/home-assistant/projects/10
|
|
github-token: ${{ steps.token.outputs.token }}
|