Skip to content

Commit

Permalink
#83 Fix linting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
docktermj committed May 29, 2024
1 parent 43cd946 commit 0f977b5
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 11 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
[markdownlint](https://dlaa.me/markdownlint/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.0.3] - 2024-05-29

### Fixed in 1.0.3

- Fixed linting issue

## [1.0.2] - 2023-08-17

### Fixed in 1.0.2
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ The GitHub action creates a pull request with updated values in `github.go`.
with:
fetch-depth: '0'
- name: Make github.go file
uses: Senzing/github-action-make-go-github-file@main
uses: Senzing/github-action-make-go-github-file@v1
```
1. A `.github/workflows/make-go-github-file.yaml` file
Expand All @@ -57,7 +57,7 @@ The GitHub action creates a pull request with updated values in `github.go`.
with:
fetch-depth: '0'
- name: Make github.go file
uses: Senzing/github-action-make-go-github-file@main
uses: Senzing/github-action-make-go-github-file@v1
with:
file: example/example.go
package: myexample
Expand Down Expand Up @@ -93,7 +93,7 @@ The GitHub action creates a pull request with updated values in `github.go`.
git_user_signingkey: true
git_commit_gpgsign: true
- name: Make github.go file
uses: Senzing/github-action-make-go-github-file@main
uses: Senzing/github-action-make-go-github-file@v1
with:
actor: ${{ secrets.ACTOR }}
```
16 changes: 8 additions & 8 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ set -eu
write_file() {
{
printf "%s\n" "${FIRST_LINE}"
printf "// Created by make-go-github-file.yaml on %s\n" "$(date)"
printf "// Created by senzing-factory/github-action-make-go-github-file.yaml on %s\n" "$(date)"
printf "//\n"
printf "//lint:file-ignore U1000 Ignore all unused code, it's generated\n"
printf "package %s\n" "${INPUT_PACKAGE}"
printf "\n"
printf "var (\n"
printf "\tgithubDate string = \"%s\"\n" "${RELEASE_DATE}"
printf "\tgithubIteration string = \"%s\"\n" "${RELEASE_ITERATION}"
printf "\tgithubRef string = \"refs/tags/%s\"\n" "${NEXT_VERSION}"
printf "\tgithubRefName string = \"%s\"\n" "${NEXT_VERSION}"
printf "\tgithubRepository string = \"%s\"\n" "${GITHUB_REPOSITORY}"
printf "\tgithubRepositoryName string = \"%s\"\n" "${RELEASE_REPOSITORY_NAME}"
printf "\tgithubVersion string = \"%s\"\n" "${NEXT_VERSION}"
printf "\tgithubDate = \"%s\"\n" "${RELEASE_DATE}"
printf "\tgithubIteration = \"%s\"\n" "${RELEASE_ITERATION}"
printf "\tgithubRef = \"refs/tags/%s\"\n" "${NEXT_VERSION}"
printf "\tgithubRefName = \"%s\"\n" "${NEXT_VERSION}"
printf "\tgithubRepository = \"%s\"\n" "${GITHUB_REPOSITORY}"
printf "\tgithubRepositoryName = \"%s\"\n" "${RELEASE_REPOSITORY_NAME}"
printf "\tgithubVersion = \"%s\"\n" "${NEXT_VERSION}"
printf ")\n"
} > "${OUTFILE}"
}
Expand Down

0 comments on commit 0f977b5

Please sign in to comment.