-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Go Driver Actions #26
Comments
cc @matthewdale |
Simple script to bump the Go Driver version: package main
import (
"bufio"
"fmt"
"os"
"path"
)
const (
versionFile = "version/version.go"
)
func main() {
repoDir, err := os.Getwd()
versionFilePath := path.Join(repoDir, versionFile)
readFile, err := os.Open(versionFilePath)
if err != nil {
fmt.Println(err)
}
fileScanner := bufio.NewScanner(readFile)
fileScanner.Split(bufio.ScanLines)
var fileLines []string
for fileScanner.Scan() {
fileLines = append(fileLines, fileScanner.Text())
}
readFile.Close()
fileLines[len(fileLines)-1] = "var Driver = \"" + os.Args[1] + "\""
writeFile, err := os.OpenFile(versionFilePath, os.O_WRONLY, 0644)
if err != nil {
fmt.Println(err)
}
for _, line := range fileLines {
fmt.Fprintln(writeFile, line)
}
writeFile.Close()
} |
Fixed by #36 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Re-use existing pieces
Bump Version (new top level)
Since we'll need flexibility to set prerelease and major versions, use the same bump action as python, but add option for the commit message
Tag Version (new top level)
Use the same tag action as python, but add tag template and tag message template.
Generate Reports (new top level)
Separate out this portion of the python publish to handle the SSDLC reports
Go-specifc
Go Prep Release
Go Release
Then the workflow in the Go Driver repo will:
workflow_call
against the new versionThe user will choose which branch to release from, and the two versions
Python-specific
For the Python Driver, we have:
Python Prep Release (new)
Python Dist (new)
Python Release (replaces python publish)
Then the workflow in the Python Driver repos will:
workflow_call
workflow_call
against the new versionThe user will choose which branch to release from, and the two versions
The text was updated successfully, but these errors were encountered: