Mixxxbot in CI and build count reduction #17221
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow | |
# | |
# This workflow will triage pull requests and apply a label based on the | |
# paths that are modified in the pull request. | |
# | |
# To use this workflow, you will need to set up a .github/labeler.yml | |
# file with configuration. For more information, see: | |
# https://github.com/actions/labeler | |
name: "Pull Request Labeler" | |
on: | |
- pull_request_target | |
jobs: | |
triage: | |
runs-on: ubuntu-latest | |
steps: | |
# Using an app is the recommended way to allow recursive operations. | |
# Apps offer a way to have reduced scoped permissions (like GITHUB_TOKEN) | |
# and short lifespan, unlike PAT. | |
# As we are trialing this approach tho, it is fine to play with a PAT and not spend the | |
# extra time setting up an app | |
# | |
# - name: Generate App Token | |
# id: generate-token-key-pair | |
# uses: actions/create-github-app-token@v1 | |
# with: | |
# private-key: ${{ secrets.MIXXX_BOT_APP_PRIVATE_KEY }} | |
# app-id: ${{ vars.MIXXX_BOT_APP_ID }} | |
- uses: actions/labeler@v5 | |
with: | |
# PAT setup with content:read and pull_request:write | |
repo-token: ${{ secrets.MIXXX_LABELLER_PAT }} | |
sync-labels: false |