forked from TheAlgorithms/Go
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Godocmd action added for updating readme automatically. (TheAlg…
…orithms#429) * workflow * fix: workflow * feat: workflow * Updated README.md * Update README.md * Updated README.md * Update generate_readme.yml * Update generate_readme.yml * Updated Documentation in README.md * Update generate_readme.yml * Updated Documentation in README.md * Update README.md * Updated Documentation in README.md * Update generate_readme.yml * Updated Documentation in README.md * Update README.md * Updated Documentation in README.md * fix: package level documentation * Updated Documentation in README.md * fix: incorrect package level documentation * Updated Documentation in README.md * Update README.md * Updated Documentation in README.md * Update decimaltobinary.go * Updated Documentation in README.md * fix: incorrect documentation format * Updated Documentation in README.md * fix: documentation format * Updated Documentation in README.md * fix: documentation format * Updated Documentation in README.md * fix: documentation * Updated Documentation in README.md * fix: documentation * Updated Documentation in README.md * Update generate_readme.yml * Update golang_lint_and_test.yml * Update generate_readme.yml * Update generate_readme.yml * fix: documentation * fix: godocmd badge * Update README.md * Update godocmd.yml * Updated Documentation in README.md Co-authored-by: godocmd-action <${GITHUB_ACTOR}@users.noreply.github.com>
- Loading branch information
1 parent
7ccc45e
commit ec28323
Showing
11 changed files
with
870 additions
and
120 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,28 @@ | ||
name: godocmd | ||
on: [push, pull_request] | ||
jobs: | ||
generate_readme: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: '^1.17' | ||
- name: Install GoDocMD | ||
run: | | ||
go install github.com/tjgurwara99/[email protected] | ||
- name: Configure Github Action | ||
run: | | ||
git config --global user.name github-action | ||
git config --global user.email '${GITHUB_ACTOR}@users.noreply.github.com' | ||
- name: Update README.md file | ||
run: | | ||
godocmd -r -module ./ -w | ||
- name: Commit changes if README.md is different | ||
run: | | ||
if [[ `git status --porcelain` ]]; then | ||
git commit -am "Updated Documentation in README.md" | ||
git push | ||
else | ||
echo "NO CHANGES DETECTED" | ||
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
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