42 lines
1.4 KiB
YAML
42 lines
1.4 KiB
YAML
name: Platform Workflow Labels
|
|
|
|
on:
|
|
issues:
|
|
types: [ labeled, unlabeled ]
|
|
|
|
jobs:
|
|
label_issues:
|
|
if: ${{ github.event.action == 'labeled' && github.event.label.name == 'team/platform-workflow' }}
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
issues: write
|
|
steps:
|
|
- name: Label Issue
|
|
uses: andymckay/labeler@1.0.4
|
|
with:
|
|
add-labels: "platform-workflow/requires-grooming"
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
- name: Add Issue To Project
|
|
uses: actions/add-to-project@v0.3.0
|
|
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-workflow' }}
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
issues: write
|
|
steps:
|
|
- name: Unlabel Issue
|
|
uses: andymckay/labeler@1.0.4
|
|
with:
|
|
remove-labels: "platform-workflow/requires-grooming"
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
- name: Remove Issue From Project
|
|
uses: monry/actions-delete-issue-from-project@v2.0.1
|
|
with:
|
|
github-token: ${{ secrets.PLATFORM_WORKFLOW_PROJECT_AUTOMATION }}
|
|
project-owner: airbytehq
|
|
project-number: 25
|
|
issue-id: ${{ github.event.issue.node_id }}
|