-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: GH actions for goreleaser, changelog reminder, and backport (#21)
- Loading branch information
1 parent
123304d
commit 5af04ad
Showing
5 changed files
with
95 additions
and
4 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 @@ | ||
# Adapted from https://github.com/marketplace/actions/backporting | ||
# | ||
# Usage: | ||
# - Let's say you want to backport a pull request on a branch named `production`. | ||
# - Then label it with `backport production`. | ||
# - That's it! When the pull request gets merged, it will be backported to | ||
# the `production` branch. If the pull request cannot be backported, a comment | ||
# explaining why will automatically be posted. | ||
# | ||
# Note: multiple backport labels can be added. For example, if a pull request | ||
# has the labels `backport staging` and `backport production` it will be | ||
# backported to both branches: `staging` and `production`. | ||
name: Backport | ||
on: | ||
pull_request_target: | ||
types: | ||
- closed | ||
- labeled | ||
|
||
jobs: | ||
backport: | ||
name: Backport | ||
runs-on: ubuntu-latest | ||
# Only react to merged PRs for security reasons. | ||
# See https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target. | ||
if: > | ||
github.event.pull_request.merged | ||
&& ( | ||
github.event.action == 'closed' | ||
|| ( | ||
github.event.action == 'labeled' | ||
&& contains(github.event.label.name, 'backport') | ||
) | ||
) | ||
steps: | ||
- uses: tibdex/backport@v2 | ||
with: | ||
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ on: | |
|
||
jobs: | ||
lint_test: | ||
uses: babylonlabs-io/.github/.github/workflows/reusable_go_lint_test.yml@v0.6.0 | ||
uses: babylonlabs-io/.github/.github/workflows/reusable_go_lint_test.yml@v0.7.0 | ||
with: | ||
run-unit-tests: true | ||
run-integration-tests: true | ||
|
@@ -16,8 +16,12 @@ jobs: | |
run-gosec: true | ||
gosec-args: "-exclude-generated -exclude-dir=itest -exclude-dir=testutil ./..." | ||
|
||
changelog_reminder: | ||
uses: babylonlabs-io/.github/.github/workflows/[email protected] | ||
secrets: inherit | ||
|
||
docker_pipeline: | ||
uses: babylonlabs-io/.github/.github/workflows/reusable_docker_pipeline.yml@v0.6.0 | ||
uses: babylonlabs-io/.github/.github/workflows/reusable_docker_pipeline.yml@v0.7.0 | ||
secrets: inherit | ||
with: | ||
publish: false | ||
|
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,11 @@ | ||
name: goreleaser | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
release: | ||
uses: babylonlabs-io/.github/.github/workflows/[email protected] | ||
secrets: inherit |
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 @@ | ||
<!-- | ||
Guiding Principles: | ||
Changelogs are for humans, not machines. | ||
There should be an entry for every single version. | ||
The same types of changes should be grouped. | ||
Versions and sections should be linkable. | ||
The latest version comes first. | ||
The release date of each version is displayed. | ||
Mention whether you follow Semantic Versioning. | ||
Usage: | ||
Change log entries are to be added to the Unreleased section under the | ||
appropriate stanza (see below). Each entry should have following format: | ||
* [#PullRequestNumber](PullRequestLink) message | ||
Types of changes (Stanzas): | ||
"Features" for new features. | ||
"Improvements" for changes in existing functionality. | ||
"Deprecated" for soon-to-be removed features. | ||
"Bug Fixes" for any bug fixes. | ||
"Client Breaking" for breaking CLI commands and REST routes used by end-users. | ||
"API Breaking" for breaking exported APIs used by developers building on SDK. | ||
"State Machine Breaking" for any changes that result in a different AppState | ||
given same genesisState and txList. | ||
Ref: https://keepachangelog.com/en/1.0.0/ | ||
--> | ||
|
||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) | ||
|
||
## Unreleased |