Rename all workflow files to follow a consistent action-oriented naming pattern similar to armbian.github.io: - adjust-maintainers.yml → sync-maintainers-status.yml - clean-workflow-logs.yml → cleanup-workflow-logs.yml - forked-helper.yml → help-forked.yml - issue-welcome-first-time.yml → welcome-issue-first-time.yml - labels-from-yml.yml → sync-labels.yml - merge-announce.yml → announce-merge.yml - open-jira-ticket.yml → create-jira-ticket.yml - pr-announce.yml → announce-pr.yml - pr-auto-labeler.yml → auto-label-pr.yml - pr-build-artifacts.yml → build-pr-artifacts.yml - pr-check-pictures.yml → check-pr-pictures.yml - pr-kernel-security-analysis.yml → analyze-pr-kernel-security.yml - pr-label-on-approved.yml → label-pr-on-approval.yml - pr-lint-scripts.yml → lint-pr-scripts.yml - pr-review-listener.yml → listen-pr-review.yml - pr-welcome-first-time.yml → welcome-pr-first-time.yml - rewrite-kernel-configs.yml → rewrite-kernel-config-files.yml - update-board-list.yml → sync-board-list.yml - update-tools.yml → sync-tools.yml This makes the workflow names more descriptive and consistent with the action verb first, followed by the target object.
37 lines
929 B
YAML
37 lines
929 B
YAML
name: Sync Labels from YAML
|
|
run-name: Sync Labels from YML on ${{ github.event_name }}
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- "main"
|
|
paths:
|
|
- ".github/labels.yml"
|
|
pull_request:
|
|
paths:
|
|
- ".github/labels.yml"
|
|
|
|
jobs:
|
|
labeler:
|
|
permissions:
|
|
contents: read # for actions/labeler to determine modified files
|
|
pull-requests: write # for actions/labeler to add labels to PRs
|
|
issues: write # for actions/labeler to add labels to issues
|
|
|
|
if: ${{ github.repository_owner == 'Armbian' }}
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Run Labeler
|
|
uses: crazy-max/ghaction-github-labeler@v5
|
|
with:
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
yaml-file: .github/labels.yml
|
|
dry-run: ${{ github.event_name == 'pull_request' }}
|
|
exclude: |
|
|
Maintenance*
|