Skip to content

Commit 660220a

Browse files
authored
fix(ci): Update release workflow (#71)
--------- Signed-off-by: Dan Webb <dan.webb@damacus.io>
1 parent 4000928 commit 660220a

File tree

7 files changed

+90
-1
lines changed

7 files changed

+90
-1
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ name: ci
88

99
jobs:
1010
lint-unit:
11-
uses: sous-chefs/.github/.github/workflows/lint-unit.yml@4.0.0
11+
uses: sous-chefs/.github/.github/workflows/lint-unit.yml@5.0.3
1212
permissions:
1313
actions: write
1414
checks: write
1515
pull-requests: write
1616
statuses: write
1717
issues: write
18+
secrets: inherit
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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@5.0.3
11+
permissions:
12+
pull-requests: read
13+
secrets: inherit
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: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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@5.0.3
11+
permissions:
12+
pull-requests: write
13+
secrets:
14+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

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

.release-please-manifest.json

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

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": "appveyor-ci",
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)