-
Notifications
You must be signed in to change notification settings - Fork 82
33 lines (28 loc) · 902 Bytes
/
addToProject.yml
File metadata and controls
33 lines (28 loc) · 902 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
28
29
30
31
32
33
name: Auto Assign to Project(s)
on:
issues:
types: [opened, edited, milestoned]
permissions:
contents: read
jobs:
assign_one_project:
runs-on: ubuntu-latest
name: Assign milestoned to Project
steps:
- name: Get token
id: get_token
uses: actions/create-github-app-token@v3
with:
app-id: ${{ secrets.OBS_AUTOMATION_APP_ID }}
private-key: ${{ secrets.OBS_AUTOMATION_APP_PEM }}
permission-organization-projects: write
permission-issues: read
- name: Assign issues with milestones to project
uses: elastic/assign-one-project-github-action@1.2.2
if: github.event.issue && github.event.issue.milestone
with:
project: 'https://github.com/orgs/elastic/projects/454'
project_id: '5882982'
column_name: 'Planned'
env:
MY_GITHUB_TOKEN: ${{ steps.get_token.outputs.token }}