-
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 1.02 KB
/
add-to-project.yml
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Add To GitHub Project
on:
workflow_call:
inputs:
project_id:
description: Project ID found in the URL
required: true
type: number
secrets:
add_to_project_pem:
description: The GitHub App PEM file
required: true
permissions: {}
jobs:
add-to-project:
name: Add to GitHub projects
runs-on: ubuntu-latest
steps:
# Create GitHub App Token
# https://github.com/actions/create-github-app-token
- name: Create GitHub App Token
uses: actions/create-github-app-token@v1.11.5
id: app-token
with:
app-id: 1080775
private-key: ${{ secrets.add_to_project_pem }}
# Add To GitHub Projects
# https://github.com/marketplace/actions/add-to-github-projects
- name: Add to GitHub project
uses: actions/add-to-project@v1.0.2
with:
project-url: https://github.com/orgs/osinfra-io/projects/${{ inputs.project_id }}
github-token: ${{ steps.app-token.outputs.token }}