Skip to content

Commit 34368fb

Browse files
authored
fix(ci): Update workflows to use release pipeline (#53)
Signed-off-by: Dan Webb <dan.webb@damacus.io>
1 parent 4bd567c commit 34368fb

9 files changed

Lines changed: 105 additions & 41 deletions
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: conventional-commits
3+
4+
"on":
5+
pull_request:
6+
types:
7+
- opened
8+
- reopened
9+
- edited
10+
- synchronize
11+
12+
jobs:
13+
conventional-commits:
14+
uses: sous-chefs/.github/.github/workflows/conventional-commits.yml@5.0.3
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: 'Copilot Setup Steps'
3+
4+
"on":
5+
workflow_dispatch:
6+
push:
7+
paths:
8+
- .github/workflows/copilot-setup-steps.yml
9+
pull_request:
10+
paths:
11+
- .github/workflows/copilot-setup-steps.yml
12+
13+
jobs:
14+
copilot-setup-steps:
15+
runs-on: ubuntu-latest
16+
permissions:
17+
contents: read
18+
steps:
19+
- name: Check out code
20+
uses: actions/checkout@v5
21+
- name: Install Chef
22+
uses: actionshub/chef-install@main
23+
- name: Install cookbooks
24+
run: berks install
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
name: prevent-file-change
3+
4+
"on":
5+
pull_request:
6+
types:
7+
- opened
8+
- reopened
9+
- edited
10+
- synchronize
11+
12+
jobs:
13+
prevent-file-change:
14+
uses: sous-chefs/.github/.github/workflows/prevent-file-change.yml@5.0.3
15+
secrets:
16+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: release
3+
4+
"on":
5+
push:
6+
branches:
7+
- main
8+
9+
permissions:
10+
contents: write
11+
issues: write
12+
pull-requests: write
13+
packages: write
14+
attestations: write
15+
id-token: write
16+
17+
jobs:
18+
release:
19+
uses: sous-chefs/.github/.github/workflows/release-cookbook.yml@5.0.3
20+
secrets:
21+
token: ${{ secrets.PORTER_GITHUB_TOKEN }}
22+
supermarket_user: ${{ secrets.CHEF_SUPERMARKET_USER }}
23+
supermarket_key: ${{ secrets.CHEF_SUPERMARKET_KEY }}

.markdownlint-cli2.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@ config:
33
line-length: false # MD013
44
no-duplicate-heading: false # MD024
55
reference-links-images: false # MD052
6+
no-multiple-blanks:
7+
maximum: 2
8+
ignores:
9+
- .github/copilot-instructions.md

.release-please-manifest.json

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

CHANGELOG.md

Lines changed: 8 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -2,55 +2,23 @@
22

33
This file is used to list changes made in each version of the GitHub cookbook.
44

5-
## Unreleased
6-
7-
## 1.1.16 - *2025-09-04*
8-
9-
## 1.1.15 - *2024-05-02*
10-
11-
## 1.1.14 - *2024-05-02*
12-
13-
## 1.1.13 - *2024-05-01*
14-
15-
## 1.1.12 - *2024-05-01*
16-
17-
## 1.1.11 - *2024-05-01*
18-
19-
## 1.1.10 - *2023-10-30*
20-
21-
## 1.1.9 - *2023-10-30*
22-
23-
## 1.1.8 - *2023-10-26*
24-
25-
## 1.1.7 - *2023-09-28*
26-
27-
## 1.1.6 - *2023-09-04*
28-
295
## 1.1.5 - *2023-06-08*
306

317
Standardise files with files in sous-chefs/repo-management
328

33-
## 1.1.4 - *2023-05-17*
34-
35-
## 1.1.3 - *2023-05-03*
36-
37-
## 1.1.2 - *2023-04-01*
38-
39-
## 1.1.1 - *2023-03-02*
40-
419
## 1.1.0 - *2022-01-24*
4210

43-
- Add :extract action to github_asset resource
11+
* Add :extract action to github_asset resource
4412

4513
## 1.0.1 - *2021-11-02*
4614

47-
- Fix typo
15+
* Fix typo
4816

4917
## 1.0.0 - *2021-09-08*
5018

51-
- Sous-Chefs adoption
52-
- Migrate to modern custom resources and enable `unified_mode`
53-
- Remove dependency on libarchive
54-
- Cookstyle fixes
55-
- Fix URI deprecation issues
56-
- Replace `extract` method with using the `archive_file` native resource
19+
* Sous-Chefs adoption
20+
* Migrate to modern custom resources and enable `unified_mode`
21+
* Remove dependency on libarchive
22+
* Cookstyle fixes
23+
* Fix URI deprecation issues
24+
* Replace `extract` method with using the `archive_file` native resource

libraries/github_asset.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def download(options = {})
7171

7272
proxy_uri = ENV['https_proxy'] ? URI.parse(ENV['https_proxy']) : URI('')
7373
proxy_uri = URI.parse(ENV['HTTPS_PROXY']) if ENV['HTTPS_PROXY']
74-
p_user, p_pass = proxy_uri.userinfo.split(/:/) if proxy_uri.userinfo
74+
p_user, p_pass = proxy_uri.userinfo.split(':') if proxy_uri.userinfo
7575
uri = URI(asset_url(options))
7676
res = Net::HTTP::Proxy(proxy_uri.host, proxy_uri.port, p_user, p_pass).start(uri.hostname, uri.port, use_ssl: true) do |http|
7777
req = Net::HTTP::Get.new(uri.to_s)

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": "github",
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+
}

0 commit comments

Comments
 (0)