-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from edenlabllc/feature/RMK-33-implement-a-new…
…-github-action-for-rmk-doc-generate Feature/rmk 33 implement a new GitHub action for rmk doc generate
- Loading branch information
Showing
6 changed files
with
69 additions
and
20 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,45 @@ | ||
name: Generate commands documentation | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
- hotfix/* | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
docs-commands-generate: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: 1.21 | ||
|
||
- name: Run GoReleaser artifact build | ||
uses: goreleaser/goreleaser-action@v5 | ||
with: | ||
distribution: goreleaser | ||
version: v1.23.0 | ||
args: build --clean --skip=validate | ||
|
||
- name: Generate and commit new commands documentation | ||
run: | | ||
echo "Configure Git user.name and user.email." | ||
git config user.name github-actions | ||
git config user.email github-actions@github.com | ||
echo "Generate new commands documentation." | ||
./dist/rmk_linux_amd64_v1/rmk doc generate > ./docs/commands.md | ||
if (git commit --all --message="Update commands documentation"); then | ||
git push | ||
echo "The new commands documentation has been committed." | ||
fi |
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
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
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 |
---|---|---|
@@ -1,3 +1 @@ | ||
- #18 - Fixed links to the OSS repository in project generation. | ||
- #18 - Split the issue template into the bug and feature templates. | ||
- #18 - Updated the Roadmap section of README.md. | ||
- #33 - Added a new GitHub action for RMK commands documentation generation. |