Skip to content

Commit

Permalink
Fix automated version update
Browse files Browse the repository at this point in the history
  • Loading branch information
iamazeem committed Mar 23, 2024
1 parent 3a54ebc commit 44ed1d9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Go
- name: Set up Go v1.21.4
uses: actions/setup-go@v5
with:
go-version: '1.21.4'
Expand Down Expand Up @@ -89,10 +91,9 @@ jobs:
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions@github.com'
git fetch
git checkout main
git add version.go
if [[ $(git diff) != "" ]]; then
if [[ $(git diff version.go) != "" ]]; then
git add version.go
git commit -m "[CI] Bump version to $VERSION"
git push -u origin main
fi

0 comments on commit 44ed1d9

Please sign in to comment.