Skip to content

Commit 8957a20

Browse files
authored
Merge pull request #37 from puppetlabs/CONT-702-Implement_reusable_workflows
(CONT-702) - Implement reusable workflows
2 parents e60981e + c2c3d24 commit 8957a20

File tree

4 files changed

+31
-6
lines changed

4 files changed

+31
-6
lines changed

.github/workflows/ci.yaml

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11
name: "ci"
22

33
on:
4-
push:
5-
branches:
6-
- "main"
74
pull_request:
85
branches:
96
- "main"
10-
schedule:
11-
- cron: "0 0 * * *"
127
workflow_dispatch:
138

149
jobs:
15-
ci:
10+
spec:
1611
uses: "puppetlabs/cat-github-actions/.github/workflows/gem_ci.yml@main"
1712
secrets: "inherit"

.github/workflows/mend.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: "mend"
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- "main"
7+
schedule:
8+
- cron: "0 0 * * *"
9+
workflow_dispatch:
10+
11+
jobs:
12+
13+
mend:
14+
uses: "puppetlabs/cat-github-actions/.github/workflows/mend_ruby.yml@main"
15+
secrets: "inherit"

.github/workflows/nightly.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: "nightly"
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * *"
6+
workflow_dispatch:
7+
8+
jobs:
9+
spec:
10+
uses: "puppetlabs/cat-github-actions/.github/workflows/gem_ci.yml@main"
11+
secrets: "inherit"

.github/workflows/release_prep.yml

+4
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,14 @@ on:
77
description: "The target for the release. This can be a commit sha or a branch."
88
required: false
99
default: "main"
10+
version:
11+
description: "Version of gem to be released."
12+
required: true
1013

1114
jobs:
1215
release_prep:
1316
uses: "puppetlabs/cat-github-actions/.github/workflows/gem_release_prep.yml@main"
1417
with:
1518
target: "${{ github.event.inputs.target }}"
19+
version: "${{ github.event.inputs.version }}"
1620
secrets: "inherit"

0 commit comments

Comments
 (0)