forked from airbytehq/airbyte
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (39 loc) · 1.36 KB
/
Copy pathplatform-workflow-labels.yml
File metadata and controls
41 lines (39 loc) · 1.36 KB
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: Platform Workflow Labels
on:
issues:
types: [ labeled, unlabeled ]
jobs:
label_issues:
if: ${{ github.event.action == 'labeled' && github.event.label.name == 'team/platform-move' }}
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Label Issue
uses: andymckay/[email protected]
with:
add-labels: "platform-move/requires-grooming"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Add Issue To Project
uses: actions/[email protected]
with:
project-url: https://github.com/orgs/airbytehq/projects/25
github-token: ${{ secrets.PLATFORM_WORKFLOW_PROJECT_AUTOMATION }}
unlabel_issues:
if: ${{ github.event.action == 'unlabeled' && github.event.label.name == 'team/platform-move' }}
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Unlabel Issue
uses: andymckay/[email protected]
with:
remove-labels: "platform-move/requires-grooming"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Remove Issue From Project
uses: monry/[email protected]
with:
github-token: ${{ secrets.PLATFORM_WORKFLOW_PROJECT_AUTOMATION }}
project-owner: airbytehq
project-number: 25
issue-id: ${{ github.event.issue.node_id }}