Skip to content

Commit 23b671d

Browse files
committed
(maint) target release-any-tag cat workflows
1 parent 3afd693 commit 23b671d

File tree

7 files changed

+52
-28
lines changed

7 files changed

+52
-28
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,18 @@ on:
77
- "main"
88
workflow_dispatch:
99

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
1014
jobs:
1115
Spec:
12-
uses: "puppetlabs/cat-github-actions/.github/workflows/module_ci.yml@main"
16+
uses: "puppetlabs/cat-github-actions/.github/workflows/module_ci.yml@release-any-tag"
1317
secrets: "inherit"
1418

1519
Acceptance:
1620
needs: Spec
17-
uses: "puppetlabs/cat-github-actions/.github/workflows/module_acceptance.yml@main"
21+
uses: "puppetlabs/cat-github-actions/.github/workflows/module_acceptance.yml@release-any-tag"
1822
secrets: "inherit"
1923
with:
2024
runs_on: "ubuntu-20.04"

.github/workflows/labeller.yml

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,13 @@
1-
---
21
name: Labeller
32

43
on:
54
issues:
6-
types:
7-
- opened
8-
- labeled
9-
- unlabeled
5+
types: [ opened, reopened, labeled, unlabeled ]
106
pull_request_target:
11-
types:
12-
- opened
13-
- labeled
14-
- unlabeled
7+
types: [ opened, reopened, labeled, unlabeled ]
158

169
jobs:
1710
label:
18-
runs-on: ubuntu-latest
19-
steps:
20-
21-
- uses: puppetlabs/[email protected]
22-
name: Label issues or pull requests
23-
with:
24-
label_name: community
25-
label_color: '5319e7'
26-
org_membership: puppetlabs
27-
fail_if_member: 'true'
28-
token: ${{ secrets.IAC_COMMUNITY_LABELER }}
11+
if: contains(fromJson('["puppetlabs","puppet-toy-chest"]'), github.repository_owner)
12+
uses: "puppetlabs/cat-github-actions/.github/workflows/labeller.yml@release-any-tag"
13+
secrets: inherit

.github/workflows/mend.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
---
21
name: "mend"
32

43
on:
@@ -11,6 +10,7 @@ on:
1110
workflow_dispatch:
1211

1312
jobs:
13+
1414
mend:
15-
uses: "puppetlabs/cat-github-actions/.github/workflows/mend_ruby.yml@main"
15+
uses: "puppetlabs/cat-github-actions/.github/workflows/mend_ruby.yml@release-any-tag"
1616
secrets: "inherit"

.github/workflows/nightly.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ on:
88

99
jobs:
1010
Spec:
11-
uses: "puppetlabs/cat-github-actions/.github/workflows/module_ci.yml@main"
11+
uses: "puppetlabs/cat-github-actions/.github/workflows/module_ci.yml@release-any-tag"
1212
secrets: "inherit"
1313

1414
Acceptance:
1515
needs: Spec
16-
uses: "puppetlabs/cat-github-actions/.github/workflows/module_acceptance.yml@main"
16+
uses: "puppetlabs/cat-github-actions/.github/workflows/module_acceptance.yml@release-any-tag"
1717
secrets: "inherit"
1818
with:
1919
runs_on: "ubuntu-20.04"

.github/workflows/release.yml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,35 @@
11
name: "Publish module"
2+
run-name: >
3+
${{ format('tag={0}', inputs.tag) }}
4+
${{ format('release={0}', inputs.release) }}
5+
${{ format('publish={0}', inputs.publish) }}
6+
${{ format('edit={0}', inputs.edit) }}
27
38
on:
49
workflow_dispatch:
10+
inputs:
11+
tag:
12+
description: "Enter an old tag, or blank to tag HEAD of branch"
13+
type: string
14+
release:
15+
description: "Create a Github release"
16+
type: boolean
17+
default: true
18+
publish:
19+
description: "Publish to the Forge"
20+
type: boolean
21+
default: true
22+
edit:
23+
description: "Re-tag and regenerate release notes"
24+
type: boolean
25+
default: false
526

627
jobs:
728
release:
8-
uses: "puppetlabs/cat-github-actions/.github/workflows/module_release.yml@main"
29+
uses: "puppetlabs/cat-github-actions/.github/workflows/module_release.yml@release-any-tag"
930
secrets: "inherit"
31+
with:
32+
tag: ${{ inputs.tag }}
33+
release: ${{ inputs.release }}
34+
publish: ${{ inputs.publish }}
35+
edit: ${{ inputs.edit }}

.github/workflows/release_prep.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
release_prep:
12-
uses: "puppetlabs/cat-github-actions/.github/workflows/module_release_prep.yml@main"
12+
uses: "puppetlabs/cat-github-actions/.github/workflows/module_release_prep.yml@release-any-tag"
1313
with:
1414
version: "${{ github.event.inputs.version }}"
1515
secrets: "inherit"

.github/workflows/release_without.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: "Publish module without"
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
release:
8+
uses: "puppetlabs/cat-github-actions/.github/workflows/module_release.yml@release-any-tag"
9+
secrets: "inherit"

0 commit comments

Comments
 (0)