-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Integrate Release-please action and config (#67)
* First iteration of release-please action and config * fix: add schema to release please config * Remove old changelog actions * ci: add PR title linter * ci: trigger release please on develop only * ci: workflow to merge main into develop automatically * fix: double key in ci merge main * ci: move name up for release please * docs: add an initial ruleset for better Github release notes * remove comments and fix schema * add comment Update secret in release-please.yml Create release please on develop for now Update .release-please-manifest.json Experiment Github Token release-please.yml fix: bump version, token, filtering revert: Github token fix: remove component from tag ci: reinstate token ci: more release-please config options ci: better text ci: fix release please spaces
- Loading branch information
1 parent
a31d762
commit 1f1404a
Showing
9 changed files
with
118 additions
and
64 deletions.
There are no files selected for viewing
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,20 @@ | ||
# .github/release.yml | ||
# https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes | ||
|
||
changelog: | ||
exclude: | ||
labels: | ||
- ignore-for-release | ||
- no-changelog | ||
authors: | ||
- pre-commit-ci | ||
categories: | ||
- title: Breaking Changes 🛠 | ||
labels: | ||
- breaking-change | ||
- title: Exciting New Features 🎉 | ||
labels: | ||
- enhancement | ||
- title: Other Changes | ||
labels: | ||
- "*" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,31 @@ | ||
name: Merge main into develop | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
|
||
permissions: | ||
# Needed to read branches | ||
contents: read | ||
# Needed to create PR's | ||
pull-requests: write | ||
|
||
jobs: | ||
sync-branches: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Set up Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
- name: Opening pull request | ||
id: pull | ||
uses: jdtx0/branch-sync@1.5.1 | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.REPO_SYNC_ACTION_PAT }} | ||
FROM_BRANCH: "main" | ||
TO_BRANCH: "develop" | ||
PULL_REQUEST_AUTO_MERGE_METHOD: "merge" |
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,21 @@ | ||
name: "Ensure Conventional Commit in PR title" | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- edited | ||
- synchronize | ||
- reopened | ||
|
||
permissions: | ||
pull-requests: read | ||
|
||
jobs: | ||
main: | ||
name: Validate PR title | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: amannn/action-semantic-pull-request@v5 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_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,24 @@ | ||
name: Run Release Please | ||
on: | ||
push: | ||
branches: | ||
- develop | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
release-please: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: googleapis/release-please-action@v4 | ||
with: | ||
# this assumes that you have created a personal access token | ||
# (PAT) and configured it as a GitHub action secret named | ||
# `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important). | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
# optional. customize path to .release-please-config.json | ||
config-file: .release-please-config.json | ||
# Currently releases are done "from main" to have a stable branch | ||
# target-branch: main |
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 |
---|---|---|
|
@@ -173,7 +173,6 @@ bar | |
*.grib | ||
*.nc | ||
*.npz | ||
*.json | ||
*.zarr/ | ||
~$images.pptx | ||
test.py | ||
|
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,19 @@ | ||
{ | ||
"release-type": "python", | ||
"bump-minor-pre-major": true, | ||
"bump-patch-for-minor-pre-major": true, | ||
"separate-pull-requests": true, | ||
"always-update": true, | ||
"changelog-type": "github", | ||
"include-component-in-tag": false, | ||
"include-v-in-tag": false, | ||
"pull-request-title-pattern": "chore${scope}: Preparing Next Release for ${component} ${version}", | ||
"pull-request-header": ":robot:This is an automated PR using `release-please`.\n\nThe following changes will be included in the release, once the next version is triggered.\n\nContent of the next Release", | ||
"pull-request-footer": "> [!IMPORTANT]\n> Merging this PR creates a release. Please refer to the [documentation](https://github.com/googleapis/release-please) if you're unsure.", | ||
"packages": { | ||
".": { | ||
"package-name": "anemoi-utils" | ||
} | ||
}, | ||
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json" | ||
} |
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,3 @@ | ||
{ | ||
".": "0.4.10" | ||
} |