-
Notifications
You must be signed in to change notification settings - Fork 351
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(main): auto release node using just
Signed-off-by: cuisongliu <[email protected]>
- Loading branch information
1 parent
21b62da
commit fd0a822
Showing
5 changed files
with
84 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 |
---|---|---|
|
@@ -3,6 +3,7 @@ name: 🚀 Release | |
on: | ||
push: | ||
tags: ["v[0-9]+.[0-9]+.[0-9]+*"] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
|
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,29 @@ | ||
name: 🚀 Tagpr for GitHub Actions | ||
on: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
tagpr: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Install just | ||
uses: taiki-e/install-action@just | ||
- uses: Songmu/tagpr@v1 | ||
id: tagpr | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Trigger Release Workflow(only when tagged) | ||
uses: actions/github-script@v6 | ||
if: "steps.tagpr.outputs.tag != ''" | ||
with: | ||
script: | | ||
github.rest.actions.createWorkflowDispatch({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
workflow_id: 'release.yaml', | ||
ref: "refs/tags/${{ steps.tagpr.outputs.tag }}", | ||
}) |
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,44 @@ | ||
name: 🤖 Automated Update tagpr config | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'Version to release' | ||
required: true | ||
jobs: | ||
config: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Update tagpr config | ||
run: | | ||
cat << EOF > .tagpr | ||
[tagpr] | ||
vPrefix = true | ||
releaseBranch = main | ||
versionFile = justfile | ||
command = just version-up ${{ github.event.inputs.version }} | ||
release = false | ||
changelog = true | ||
EOF | ||
- uses: peter-evans/create-pull-request@v5 | ||
with: | ||
title: 'config: Automated Tagpr Update for ${{ github.event.inputs.version }}' | ||
add-paths: | | ||
.tagpr | ||
body: | | ||
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action | ||
commit-message: | | ||
🤖 update tagpr config using robot. | ||
branch: tagpr-${{ github.event.inputs.version }} | ||
base: main | ||
signoff: true | ||
delete-branch: true | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
committer: github-actions[bot] <github-actions[bot]@users.noreply.github.com> | ||
author: github-actions[bot] <github-actions[bot]@users.noreply.github.com> |
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,8 @@ | ||
# Generated by github action. DO NOT EDIT. | ||
[tagpr] | ||
vPrefix = true | ||
releaseBranch = main | ||
versionFile = justfile | ||
command = just version-up 0.3.1 | ||
release = false | ||
changelog = true |
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