Skip to content

Commit

Permalink
cd: Append dev to version number in script after release
Browse files Browse the repository at this point in the history
  • Loading branch information
itislu committed Apr 21, 2024
1 parent af21ecf commit 0805831
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,9 @@ jobs:
with:
ref: main

- name: ⏫ Update version number in script
- name: 🛠️ Append dev to version number in script
run: |
version=${{ env.VERSION }}
major=$(echo $version | cut -d. -f1)
minor=$(echo $version | cut -d. -f2)
patch=$(echo $version | cut -d. -f3)
patch=$((patch + 1))
new_version="$major.$minor.$patch"
new_version="${{ env.VERSION }}+dev"
sed -i "s/^current_version=.*/current_version=\"$new_version\"/" 42free.sh
git add 42free.sh
git commit -m "bot: Update version number to $new_version"
Expand Down

0 comments on commit 0805831

Please sign in to comment.