1
0
mirror of synced 2026-01-01 18:02:53 -05:00
Files
airbyte/.github/workflows/platform-workflow-labels.yml
2022-11-03 13:48:59 -07:00

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 }}