build: use reusable-workflows [1]
Signed-off-by: Christian Kotzbauer <git@ckotzbauer.de>
This commit is contained in:
parent
05efdef93c
commit
63e69546fa
|
|
@ -1,18 +1,12 @@
|
||||||
name: Create default labels
|
name: create-default-labels
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- "main"
|
- "main"
|
||||||
paths:
|
paths:
|
||||||
- ".github/labels.json"
|
- ".github/labels.json"
|
||||||
|
workflow_dispatch: {}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
labels:
|
size-label:
|
||||||
name: DefaultLabelsActions
|
uses: ckotzbauer/actions-toolkit/.github/workflows/toolkit-create-default-labels.yml@0.10.1
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- uses: lannonbr/issue-label-manager-action@3.0.1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
delete: true
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
name: Label Issues
|
name: label-issues
|
||||||
on:
|
on:
|
||||||
issue_comment:
|
issue_comment:
|
||||||
types:
|
types:
|
||||||
|
|
@ -10,12 +10,7 @@ on:
|
||||||
issues:
|
issues:
|
||||||
types:
|
types:
|
||||||
- opened
|
- opened
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
label:
|
label-issues:
|
||||||
runs-on: ubuntu-latest
|
uses: ckotzbauer/actions-toolkit/.github/workflows/label-issues.yml@0.10.1
|
||||||
steps:
|
|
||||||
- uses: "actions/checkout@v3"
|
|
||||||
- name: label
|
|
||||||
uses: "ckotzbauer/label-command-action@v2"
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,8 @@
|
||||||
name: Label size of PRs
|
name: size-label
|
||||||
on:
|
on:
|
||||||
pull_request_target:
|
pull_request_target:
|
||||||
types: [opened, reopened, synchronize]
|
types: [opened, reopened, synchronize]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
size-label:
|
size-label:
|
||||||
runs-on: ubuntu-latest
|
uses: ckotzbauer/actions-toolkit/.github/workflows/toolkit-size-label.yml@0.10.1
|
||||||
steps:
|
|
||||||
- name: size-label
|
|
||||||
uses: "pascalgn/size-label-action@1619680c5ac1ef360b944bb56a57587ba4aa2af8"
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
|
||||||
IGNORED: ".*\npackage-lock.json\ndist/**"
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue