charts/.github/workflows/metadata-label-pr.yaml
Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs 998aa05027
ci: Restructure reusable workflows
Signed-off-by: Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs <me@bjw-s.dev>
2022-02-04 10:15:16 +01:00

40 lines
869 B
YAML

---
name: "Metadata: Label pull requests"
on:
pull_request_target:
types:
- opened
- edited
- closed
- reopened
- ready_for_review
- synchronize
jobs:
label-size:
name: Label Size
runs-on: ubuntu-latest
steps:
- name: Generate Token
uses: tibdex/github-app-token@v1
id: generate-token
with:
app_id: ${{ secrets.K8S_AT_HOME_APP_ID }}
private_key: ${{ secrets.K8S_AT_HOME_APP_PRIVATE_KEY }}
- name: Label Size
uses: pascalgn/size-label-action@v0.4.3
env:
GITHUB_TOKEN: "${{ steps.generate-token.outputs.token }}"
with:
sizes: >
{
"0": "XS",
"20": "S",
"50": "M",
"200": "L",
"800": "XL",
"2000": "XXL"
}