26 lines
771 B
YAML
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
|