Skip to content

Commit 492a2f0

Browse files
authored
fix: Adds release workflow (#828)
Signed-off-by: Dan Webb <dan.webb@damacus.io>
1 parent b1ca531 commit 492a2f0

File tree

8 files changed

+76
-9
lines changed

8 files changed

+76
-9
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
name: 'Validate PR'
3+
4+
"on":
5+
pull_request_target:
6+
types: [opened, edited, reopened]
7+
8+
jobs:
9+
conventional-commits:
10+
uses: sous-chefs/.github/.github/workflows/conventional-commits.yml@4.1.0

.github/workflows/copilot-setup-steps.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
name: "Copilot Setup Steps"
2+
name: 'Copilot Setup Steps'
33

4-
on:
4+
"on":
55
workflow_dispatch:
66
push:
77
paths:
@@ -23,5 +23,4 @@ jobs:
2323
- name: Install Chef
2424
uses: actionshub/chef-install@main
2525
- name: Install cookbooks
26-
run: |
27-
berks install
26+
run: berks install
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
name: 'Prevent file change'
3+
4+
"on":
5+
pull_request_target:
6+
branches: [main]
7+
8+
jobs:
9+
prevent-file-change:
10+
uses: sous-chefs/.github/.github/workflows/prevent-file-change.yml@4.1.0
11+
permissions:
12+
pull-requests: write

.github/workflows/release.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
name: release-please
3+
4+
"on":
5+
workflow_dispatch:
6+
7+
jobs:
8+
release-cookbook:
9+
uses: sous-chefs/.github/.github/workflows/release-cookbook.yml@4.1.0
10+
permissions:
11+
contents: write
12+
issues: write
13+
pull-requests: write
14+
packages: write
15+
attestations: write
16+
id-token: write

.release-please-manifest.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "9.3.7"
3+
}

.tool-versions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ruby system

release-please-config.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"packages": {
3+
".": {
4+
"package-name": "apache2",
5+
"changelog-path": "CHANGELOG.md",
6+
"release-type": "ruby",
7+
"include-component-in-tag": false,
8+
"version-file": "metadata.rb"
9+
}
10+
},
11+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
12+
}

renovate.json

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,32 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3-
"extends": ["config:base"],
3+
"extends": [
4+
"config:recommended"
5+
],
46
"packageRules": [
57
{
68
"groupName": "Actions",
7-
"matchUpdateTypes": ["minor", "patch", "pin"],
9+
"matchUpdateTypes": [
10+
"minor",
11+
"patch",
12+
"pin"
13+
],
814
"automerge": true,
9-
"addLabels": ["Release: Patch", "Skip: Announcements"]
15+
"addLabels": [
16+
"Release: Patch",
17+
"Skip: Announcements"
18+
]
1019
},
1120
{
1221
"groupName": "Actions",
13-
"matchUpdateTypes": ["major"],
22+
"matchUpdateTypes": [
23+
"major"
24+
],
1425
"automerge": false,
15-
"addLabels": ["Release: Patch", "Skip: Announcements"]
26+
"addLabels": [
27+
"Release: Patch",
28+
"Skip: Announcements"
29+
]
1630
}
1731
]
1832
}

0 commit comments

Comments
 (0)