Skip to content

Commit

Permalink
Replace labeling action (#2203)
Browse files Browse the repository at this point in the history
  • Loading branch information
semuelle authored Feb 2, 2024
1 parent 730c875 commit d8442ff
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 13 deletions.
11 changes: 11 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
admin-review:
- changed-files:
- any-glob-to-any-file: applications/**

"update docs":
- changed-files:
- any-glob-to-any-file: ['docs/**', '!docs/RFPs/**']

"rfp":
- changed-files:
- any-glob-to-any-file: docs/RFPs/**
14 changes: 1 addition & 13 deletions .github/workflows/check_application_document.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Check application document

on:
workflow_dispatch:
pull_request_target:
pull_request:
types: [opened, synchronize]

Expand All @@ -20,19 +21,6 @@ jobs:
filter: 'applications/*.md'
format: 'csv'

add_label:
needs: get_filename
if: needs.get_filename.outputs.filename
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: add admin-review label
uses: actions-ecosystem/action-add-labels@v1
with:
labels: admin-review
github_token: ${{ secrets.GITHUB_TOKEN }}

parse_document:
needs: get_filename
if: needs.get_filename.outputs.filename
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: "Pull Request Labeler"
on:
- pull_request_target

jobs:
labeler:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v5
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit d8442ff

Please sign in to comment.