Skip to content

Commit

Permalink
build: use reusable-workflows [1]
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Kotzbauer <[email protected]>
  • Loading branch information
ckotzbauer committed Apr 5, 2022
1 parent 585cf4b commit b0cba49
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 30 deletions.
16 changes: 4 additions & 12 deletions .github/workflows/create-default-labels.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,12 @@
name: Create default labels
name: create-default-labels
on:
push:
branches:
- "main"
paths:
- ".github/labels.json"
workflow_dispatch: {}
jobs:
labels:
name: DefaultLabelsActions
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: lannonbr/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
delete: true

jobs:
size-label:
uses: ckotzbauer/actions-toolkit/.github/workflows/[email protected]
13 changes: 4 additions & 9 deletions .github/workflows/label-issues.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Label Issues
name: label-issues
on:
issue_comment:
types:
Expand All @@ -10,12 +10,7 @@ on:
issues:
types:
- opened

jobs:
label:
runs-on: ubuntu-latest
steps:
- uses: "actions/checkout@v3"
- name: label
uses: ckotzbauer/label-command-action@v2
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
label-issues:
uses: ckotzbauer/actions-toolkit/.github/workflows/[email protected]
12 changes: 3 additions & 9 deletions .github/workflows/size-label.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
name: Label size of PRs
name: size-label
on:
pull_request_target:
types: [opened, reopened, synchronize]

jobs:
size-label:
runs-on: ubuntu-latest
steps:
- name: size-label
uses: pascalgn/size-label-action@a4655c448bb838e8d73b81e97fd0831bb4cbda1e
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
IGNORED: ".*\npackage-lock.json\ndist/**"

uses: ckotzbauer/actions-toolkit/.github/workflows/[email protected]

0 comments on commit b0cba49

Please sign in to comment.