-
Notifications
You must be signed in to change notification settings - Fork 2
27 lines (24 loc) · 843 Bytes
/
project.yml
File metadata and controls
27 lines (24 loc) · 843 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: Add new issues to CSTI project
on:
issues:
types:
- opened
jobs:
add-to-project:
name: Add issue to project
runs-on: ubuntu-latest
steps:
- name: Use GitHub App Token
uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ secrets.ADD_TO_PROJECT_APP_ID }} # The ID of the GitHub App
private-key: ${{ secrets.ADD_TO_PROJECT_PRIVATE_KEY }} # The private key of the GitHub App
- name: add action
uses: actions/add-to-project@v1.0.2
with:
# You can target a repository in a different organization
# to the issue
project-url: https://github.com/orgs/guardian/projects/61
# A GitHub app token generated by the previous step
github-token: ${{ steps.app-token.outputs.token }}