-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add release-please action (#110)
- Loading branch information
Showing
3 changed files
with
75 additions
and
0 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,38 @@ | ||
name: "pr-title-validation" | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- edited | ||
- synchronize | ||
|
||
jobs: | ||
validate_pr_title: | ||
name: Validate PR title | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: amannn/action-semantic-pull-request@v5 | ||
with: | ||
# Use the following release types to match the same rules in the PR title lint | ||
# https://github.com/googleapis/release-please/blob/main/src/changelog-notes.ts#L42-L55 | ||
types: | | ||
feat | ||
fix | ||
perf | ||
deps | ||
revert | ||
docs | ||
style | ||
chore | ||
refactor | ||
test | ||
build | ||
ci | ||
subjectPattern: ^(?![A-Z]).+$ | ||
subjectPatternError: | | ||
The subject "{subject}" found in the pull request title "{title}" | ||
didn't match the configured pattern. Please ensure that the subject | ||
doesn't start with an uppercase character. | ||
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,35 @@ | ||
name: release-please | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
permissions: {} | ||
|
||
jobs: | ||
release_please: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
outputs: | ||
release_created: ${{ steps.release.outputs.release_created }} | ||
|
||
steps: | ||
- uses: google-github-actions/[email protected] | ||
id: release | ||
with: | ||
changelog-types: | | ||
[ | ||
{"type":"build","section":"Build System","hidden":false}, | ||
{"type":"chore","section":"Miscellaneous","hidden":false}, | ||
{"type":"feat","section":"Features","hidden":false}, | ||
{"type":"fix","section":"Bug Fixes","hidden":false}, | ||
{"type":"perf","section":"Performance Improvements","hidden":false}, | ||
{"type":"refactor","section":"Refactoring","hidden":false}, | ||
{"type":"revert","section":"Reverts","hidden":false} | ||
] | ||
release-type: simple | ||
extra-files: | | ||
./gradle.properties | ||
token: ${{ secrets.WORKFLOW_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