-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add some basic workflow and renovate config
- Loading branch information
Showing
6 changed files
with
180 additions
and
2 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* @tboerger |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"extends": [ | ||
"config:recommended", | ||
":semanticCommits", | ||
":semanticCommitType(deps)" | ||
], | ||
"packageRules": [ | ||
{ | ||
"description": "Semantic commits for major updates", | ||
"matchUpdateTypes": [ | ||
"major" | ||
], | ||
"semanticCommitType": "major", | ||
"semanticCommitScope": "deps", | ||
"automerge": true | ||
}, | ||
{ | ||
"description": "Semantic commits for minor updates", | ||
"matchUpdateTypes": [ | ||
"minor" | ||
], | ||
"semanticCommitType": "minor", | ||
"semanticCommitScope": "deps", | ||
"automerge": true | ||
}, | ||
{ | ||
"description": "Semantic commits for patch updates", | ||
"matchUpdateTypes": [ | ||
"patch" | ||
], | ||
"semanticCommitType": "patch", | ||
"semanticCommitScope": "deps", | ||
"automerge": true | ||
}, | ||
{ | ||
"description": "Build tool version upgrades", | ||
"matchManagers": [ | ||
"github-actions" | ||
], | ||
"semanticCommitType": "ci", | ||
"semanticCommitScope": "tools", | ||
"automerge": true | ||
} | ||
], | ||
"labels": [ | ||
"renovate" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
name: automerge | ||
|
||
"on": | ||
workflow_dispatch: | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
dependabot: | ||
runs-on: ubuntu-latest | ||
if: github.actor == 'dependabot[bot]' | ||
|
||
steps: | ||
- name: Fetch metadata | ||
id: metadata | ||
uses: dependabot/fetch-metadata@v2 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Approve request | ||
id: approve | ||
run: gh pr review --approve "${{github.event.pull_request.html_url}}" | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Enable automerge | ||
id: automerge | ||
run: gh pr merge --rebase --auto "${{github.event.pull_request.html_url}}" | ||
env: | ||
GH_TOKEN: ${{ secrets.PERSONAL_TOKEN }} | ||
|
||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
name: general | ||
|
||
"on": | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
check: | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- name: Clone source | ||
uses: actions/checkout@v4 | ||
|
||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
--- | ||
name: release | ||
|
||
"on": | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 8 * * 1" | ||
|
||
permissions: | ||
contents: read | ||
id-token: write | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout source | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.PERSONAL_TOKEN }} | ||
|
||
- name: Setup nodejs | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20.x | ||
|
||
- name: Install releaser | ||
run: | | ||
npm install -g \ | ||
conventional-changelog-conventionalcommits@6.1.0 \ | ||
semantic-release@23.1.1 \ | ||
@semantic-release/changelog \ | ||
@semantic-release/git | ||
- name: Run releaser | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.PERSONAL_TOKEN }} | ||
run: semantic-release | ||
|
||
- name: Write buildtime | ||
run: date >| .github/RELEASE | ||
|
||
- name: Update repo | ||
run: git pull --rebase --autostash | ||
|
||
- name: Commit changes | ||
uses: EndBug/add-and-commit@v9 | ||
with: | ||
author_name: GitHub Actions | ||
author_email: thomas@webhippie.de | ||
add: .github/RELEASE | ||
message: "docs: automated release update [skip ci]" | ||
push: true | ||
commit: --signoff | ||
|
||
... |