Skip to content

Commit 718c117

Browse files
committed
chore: create test actions for reusable workflows
- [x] change yml to yaml (preferred according to my IDE and [YAML FAQ](https://yaml.org/faq.html)) Signed-off-by: jmeridth <[email protected]>
1 parent ded2287 commit 718c117

13 files changed

+73
-2
lines changed
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
name: "Auto Labeler"
33
on:
44
workflow_call:
5+
inputs:
6+
config-name:
7+
required: true
8+
type: string
9+
default: release-drafter.yaml
510
secrets:
611
github-token:
712
required: true
@@ -19,4 +24,4 @@ jobs:
1924
env:
2025
GITHUB_TOKEN: ${{ secrets.github-token }}
2126
with:
22-
config-name: release-drafter.yml
27+
config-name: ${{ inputs.config-name }}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
release-config-name:
1212
required: true
1313
type: string
14-
default: release-drafter.yml
14+
default: release-drafter.yaml
1515
create-image:
1616
required: false
1717
type: boolean
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
name: "Auto Labeler"
3+
on:
4+
# pull_request_target event is required for autolabeler to support all PRs including forks
5+
pull_request_target:
6+
types: [opened, reopened, edited, synchronize]
7+
permissions:
8+
contents: read
9+
jobs:
10+
auto_labeler:
11+
uses: ./.github/workflows/auto-labeler.yaml@main
12+
with:
13+
config-name: release-drafter.yaml
14+
secrets:
15+
github-token: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
name: "Pull Request Labeler"
3+
on:
4+
pull_request_target:
5+
permissions:
6+
contents: read
7+
jobs:
8+
labeler:
9+
uses: ./.github/workflows/labeler.yaml@main
10+
secrets:
11+
github-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)