Skip to content

Commit

Permalink
ci: update version.go in releaser github workflow
Browse files Browse the repository at this point in the history
Resolve #307.
  • Loading branch information
Roman Inflianskas committed Feb 5, 2024
1 parent 6cdb7a6 commit 4ac9ce5
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions .github/workflows/releaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,34 @@ jobs:
releaser:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- id: sha
run: echo "sha=${GITHUB_SHA::7}" >> $GITHUB_OUTPUT
- id: version
uses: anothrNick/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}
WITH_V: true
DRY_RUN: true
- run: |
tee version.go << END
package aiven
// Version returns aiven-go-client version string
func Version() string {
return "${{ steps.version.outputs.new_tag }}"
}
END
git config user.name github-actions
git config user.email [email protected]
git add .
git commit -m "chore(version.go): update aiven-go-client version"
git push
- id: sha
run: |
GIT_SHA=$(git rev-parse HEAD)
echo "sha=${GIT_SHA::7}" >> $GITHUB_OUTPUT
- id: tag
uses: anothrNick/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}
Expand Down

0 comments on commit 4ac9ce5

Please sign in to comment.