Make a github.go file.
The GitHub action creates a pull request with updated values in github.go
.
-
A
.github/workflows/make-go-github-file.yaml
file that creates acmd/github.go
file for "package cmd". Example:name: make-go-github-file.yaml on: push: tags: - "[0-9]+.[0-9]+.[0-9]+" jobs: build: name: Update cmd/github.go runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v3 with: fetch-depth: '0' - name: Make github.go file uses: Senzing/github-action-make-go-github-file@v1
-
A
.github/workflows/make-go-github-file.yaml
file that creates aexample/example.go
file for "package myexample". Example:name: make-go-github-file.yaml on: push: tags: - "[0-9]+.[0-9]+.[0-9]+" jobs: build: name: Update cmd/github.go runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v3 with: fetch-depth: '0' - name: Make github.go file uses: Senzing/github-action-make-go-github-file@v1 with: file: example/example.go package: myexample
-
A
.github/workflows/make-go-github-file.yaml
file that creates acmd/github.go
file for "package cmd" using a signed commit. Example:name: make-go-github-file.yaml on: push: tags: - "[0-9]+.[0-9]+.[0-9]+" jobs: build: name: Update cmd/github.go runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v3 with: fetch-depth: '0' - name: Import GPG key uses: crazy-max/ghaction-import-gpg@v5 with: gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} passphrase: ${{ secrets.PASSPHRASE }} git_user_signingkey: true git_commit_gpgsign: true - name: Make github.go file uses: Senzing/github-action-make-go-github-file@v1 with: actor: ${{ secrets.ACTOR }}