-
Notifications
You must be signed in to change notification settings - Fork 56
42 lines (36 loc) · 1.19 KB
/
pr-issues-project.yaml
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
42
---
# GitHub Actions workflow to automatically push PRs and issues to the DevOps Stack project board.
#
# IMPORTANT: This workflow is called by other workflows in our DevOps Stack repositories and it is centralized here in
# order to be easily maintained across modules. Because of this, please make sure you're not introducing any breaking
# changes when modifying this workflow.
name: "pr-issues-project"
on:
workflow_call:
secrets:
PROJECT_APP_PRIVATE_KEY:
description: "GitHub App private key for the DevOps Stack Project app"
required: true
issues:
types:
- opened
- reopened
pull_request:
types:
- opened
- reopened
jobs:
add-to-project:
runs-on: ubuntu-latest
steps:
- name: Generate authentication token from GitHub App
id: generate_token
uses: tibdex/github-app-token@v2
with:
app_id: 322306
private_key: ${{ secrets.PROJECT_APP_PRIVATE_KEY }}
- name: Add PR or issue to DevOps Stack project board
uses: actions/[email protected]
with:
project-url: https://github.com/orgs/camptocamp/projects/3/
github-token: ${{ steps.generate_token.outputs.token }}