Browse Source

refactor: rename labeler.yml to issue-triage-automation.yml and consolidate sync-game-labels

- Rename 'labeler.yml' to 'issue-triage-automation.yml' to better reflect the workflow's expanded responsibilities (issue triage, game detection, AI analysis, Linux support verification, and label syncing)
- Consolidate 'sync-game-labels.yml' into the main workflow
- Add push trigger for serverlist.csv changes
- Add sync-game-labels job that runs on push events when serverlist.csv is modified
- Remove the separate sync-game-labels.yml workflow

This simplifies workflow organization by having all issue/PR maintenance logic in a single, well-named workflow.
pull/4918/head
Daniel Gibbs 1 month ago
parent
commit
de9bdfb642
Failed to extract signature
  1. 22
      .github/workflows/issue-triage-automation.yml
  2. 28
      .github/workflows/sync-game-labels.yml

22
.github/workflows/labeler.yml → .github/workflows/issue-triage-automation.yml

@ -1,4 +1,4 @@
name: Unified Labeling
name: Issue Triage & Automation
on:
workflow_dispatch:
inputs:
@ -49,6 +49,12 @@ on:
- edited
- synchronize
- reopened
push:
branches:
- master
- develop
paths:
- "lgsm/data/serverlist.csv"
permissions:
issues: write
@ -2282,3 +2288,17 @@ jobs:
uses: JasonEtco/is-sponsor-label-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
sync-game-labels:
if: github.repository_owner == 'GameServerManagers' && github.event_name == 'push' && contains(github.event.head_commit.modified, 'lgsm/data/serverlist.csv')
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Sync game labels from serverlist
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
chmod +x .github/scripts/sync-game-labels.sh
.github/scripts/sync-game-labels.sh

28
.github/workflows/sync-game-labels.yml

@ -1,28 +0,0 @@
name: Sync Game Labels
on:
push:
branches:
- master
- develop
paths:
- "lgsm/data/serverlist.csv"
workflow_dispatch: {}
permissions:
issues: write
contents: read
jobs:
sync-game-labels:
if: github.repository_owner == 'GameServerManagers'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Sync game labels from serverlist
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
chmod +x .github/scripts/sync-game-labels.sh
.github/scripts/sync-game-labels.sh
Loading…
Cancel
Save