mirror of
https://github.com/awsdocs/aws-doc-sdk-examples.git
synced 2026-03-26 06:22:18 +00:00
41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
name: "Audit Labels"
|
|
|
|
on: # yamllint disable-line rule:truthy
|
|
workflow_dispatch:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
types:
|
|
- closed
|
|
jobs:
|
|
label-linter:
|
|
name: Audit Labels
|
|
permissions:
|
|
contents: read
|
|
pull-requests: write
|
|
runs-on: ubuntu-latest
|
|
if: github.event.pull_request.merged == true
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
sparse-checkout: .github/allowed-labels.yml
|
|
sparse-checkout-cone-mode: false
|
|
|
|
# The Audit Labels workflow creates, renames, updates
|
|
# or deletes labels based on a list of allowed labels.
|
|
#
|
|
# To use this workflow, you must set up and configure
|
|
# labels in a .github/allowed-labels.yml file
|
|
#
|
|
# For more information, see:
|
|
# https://github.com/crazy-max/ghaction-github-labeler
|
|
- name: Audit Labels
|
|
if: success()
|
|
uses: crazy-max/ghaction-github-labeler@v4
|
|
with:
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
yaml-file: .github/allowed-labels.yml
|
|
skip-delete: true
|
|
dry-run: false
|