diff --git a/.github/workflows/labeler.yml b/.github/workflows/issue-triage-automation.yml similarity index 99% rename from .github/workflows/labeler.yml rename to .github/workflows/issue-triage-automation.yml index d2735afb4..4992613c4 100644 --- a/.github/workflows/labeler.yml +++ b/.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 diff --git a/.github/workflows/sync-game-labels.yml b/.github/workflows/sync-game-labels.yml deleted file mode 100644 index eccb0ed46..000000000 --- a/.github/workflows/sync-game-labels.yml +++ /dev/null @@ -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