1
0
mirror of synced 2025-12-30 03:02:21 -05:00
Files
airbyte/.github/workflows/label-github-issues-by-path.yml
Jimmy Ma 9161bf9c86 Fix indent in github action (#19329)
* Fix indent

* Fix indent again
2022-11-10 16:59:06 -08:00

26 lines
771 B
YAML

# the mapping from filepath to label
# is defined in .github/label-github-issues-by-path.yml
name: "Label PR based on filepath"
on:
- pull_request_target
jobs:
add-label-based-on-file-changes:
name: "Label PRs based on files changes"
runs-on: ubuntu-latest
steps:
- name: Checkout Airbyte Repo for PAT command
uses: actions/checkout@v2
- name: Check PAT rate limits
# Cannot share PAT outside of JOB context
run: |
./tools/bin/find_non_rate_limited_PAT \
${{ secrets.OCTAVIA_4_ROOT_ACCESS }} \
${{ secrets.OCTAVIA_PAT }}
- name: "Label PR based on changed files"
uses: actions/labeler@v3
with:
repo-token: "${{ env.PAT }}"
sync-labels: true