Skip to content

Commit

Permalink
Merge pull request #18 from Bisnode/bump-kubectl-login-version
Browse files Browse the repository at this point in the history
Auto bump kubectl-login version
  • Loading branch information
srchandar74 authored Mar 18, 2022
2 parents f39b715 + 59f83a2 commit 3b66319
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,19 @@ jobs:
steps:
- name: Checkout source
uses: actions/checkout@master
- name: Get Next Tag
id: tag_version
uses: SOLIDSoftworks/semver-tags@1.0.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN}}
tag-prefix: 'v'
dry-run: true
- name: Update kubectl-login Version
env:
KLOGIN_VERSION: ${{ steps.tag_version.outputs.semantic-version }}
run: |
CURRENT_VERSION=$(cat main.go | grep 'const version' | tr -d \" | awk -F ' ' '{print $NF}')
sed -i "s/$CURRENT_VERSION/$KLOGIN_VERSION/" main.go
- name: Setup Go
uses: actions/setup-go@v1
with:
Expand Down Expand Up @@ -36,14 +49,6 @@ jobs:
GOOS: windows
GOARCH: amd64
if: github.ref_name == 'master'
- name: Get Next Tag
id: tag_version
uses: SOLIDSoftworks/semver-tags@1.0.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN}}
tag-prefix: 'v'
dry-run: true
if: github.ref_name == 'master'
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"k8s.io/client-go/tools/clientcmd/api"
)

const version = "1.2.1"
const version = "1.0.0"

const usageInstructions string = `Usage of kubectl login:
--force
Expand Down

0 comments on commit 3b66319

Please sign in to comment.