-
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.
- Loading branch information
1 parent
5543b1d
commit e04ff87
Showing
2 changed files
with
9 additions
and
11 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 |
---|---|---|
@@ -1,29 +1,29 @@ | ||
# add_github_go_ci function | ||
# github_add_go_ci function | ||
# Add GitHub Actions workflow and changelog script for Go projects. | ||
|
||
# Usage: | ||
# add_github_go_ci | ||
# github_add_go_ci | ||
|
||
# Description: | ||
# The 'add_github_go_ci' function downloads a GitHub Actions workflow file (ci.yml) and a Git changelog script, | ||
# The 'github_add_go_ci' function downloads a GitHub Actions workflow file (ci.yml) and a Git changelog script, | ||
# specifically designed for Go projects. It saves these files to the specified locations. | ||
|
||
# Options: | ||
# None | ||
|
||
# Example usage: | ||
# add_github_go_ci | ||
# github_add_go_ci | ||
|
||
# Instructions: | ||
# 1. Run 'add_github_go_ci' to download the GitHub Actions workflow file and Git changelog script. | ||
# 1. Run 'github_add_go_ci' to download the GitHub Actions workflow file and Git changelog script. | ||
# 2. The workflow file (ci.yml) will be saved to the '$github_workflow_conf' directory. | ||
# 3. The changelog script will be saved to the current directory. | ||
|
||
# Notes: | ||
# - Ensure that 'curl' is installed for proper functionality. | ||
# - The URLs point to specific files in the 'wsdkit.keys' repository on GitHub. | ||
function add_github_go_ci() { | ||
download_file ".github/workflows/ci.yml" "https://raw.githubusercontent.com/pnguyen215/wsdkit.keys/master/devops/github_go_workflow.yml" | ||
function github_add_go_ci() { | ||
download_file ".github/workflows/ci.yml" "https://raw.githubusercontent.com/pnguyen215/wsdkit.keys/master/devops/github_workflow/ci.yml" | ||
download_file "git_changelog.sh" "https://raw.githubusercontent.com/pnguyen215/wsdkit.keys/master/sh/git_changelog.sh" | ||
} | ||
alias addgithubgoci="add_github_go_ci" | ||
alias addgithubgoci="github_add_go_ci" |
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