style(render): satisfy Kotlin formatting gate #49
Workflow file for this run
This file contains hidden or 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
| name: Ensure Labels | |
| on: | |
| workflow_dispatch: | |
| push: | |
| paths: | |
| - ".github/workflows/ensure-labels.yml" | |
| - ".github/dependabot.yml" | |
| permissions: | |
| issues: write | |
| jobs: | |
| ensure: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Ensure required labels exist | |
| uses: actions/github-script@v9 | |
| with: | |
| script: | | |
| const labels = [ | |
| { name: "dependencies", color: "0366d6", description: "Dependency updates" }, | |
| { name: "gradle", color: "0e8a16", description: "Gradle build and dependency updates" }, | |
| { name: "github-actions", color: "5319e7", description: "GitHub Actions workflow updates" }, | |
| { name: "performance-ab", color: "d4c5f9", description: "Run the base-owned paired performance gate" }, | |
| { name: "performance-snapshot", color: "bfdadc", description: "Use the viewer snapshot performance profile" }, | |
| { name: "performance-gb-bot", color: "bfdadc", description: "Use the GB bot decision performance profile" }, | |
| { name: "performance-region-fingerprint", color: "bfdadc", description: "Use the table region fingerprint performance profile" }, | |
| { name: "performance-display-spawn", color: "bfdadc", description: "Use the display entity spawn performance profile" }, | |
| { name: "performance-region-queue", color: "bfdadc", description: "Use the region update queue performance profile" }, | |
| { name: "performance-scheduler-reflection", color: "bfdadc", description: "Use the scheduler reflection performance profile" }, | |
| { name: "performance-ray-proxy", color: "bfdadc", description: "Use the client ray-proxy performance profile" } | |
| ]; | |
| for (const label of labels) { | |
| try { | |
| await github.rest.issues.getLabel({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| name: label.name | |
| }); | |
| core.info(`Label exists: ${label.name}`); | |
| } catch (error) { | |
| if (error.status !== 404) { | |
| throw error; | |
| } | |
| await github.rest.issues.createLabel({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| name: label.name, | |
| color: label.color, | |
| description: label.description | |
| }); | |
| core.info(`Created label: ${label.name}`); | |
| } | |
| } |