Skip to content

Commit 29ad0b6

Browse files
authored
Merge pull request #14 from codcod/12-synchronize-version-upgrades-with-semantic-versioning
fix: bumping version number
2 parents 5c754cc + 5f4b6e0 commit 29ad0b6

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

.github/workflows/release.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ jobs:
9797
git config --local user.name "GitHub Action"
9898
git add Cargo.toml
9999
git commit -m "chore: bump version to ${{ needs.semantic-version.outputs.version }}" || exit 0
100+
git push || exit 0
100101
101102
- name: Create Release
102103
id: create_release
@@ -161,6 +162,12 @@ jobs:
161162
steps:
162163
- name: Checkout code
163164
uses: actions/checkout@v5
165+
with:
166+
ref: main
167+
fetch-depth: 1
168+
169+
- name: Pull latest changes
170+
run: git pull origin main
164171

165172
- name: Install Rust
166173
uses: dtolnay/rust-toolchain@stable
@@ -223,6 +230,12 @@ jobs:
223230
steps:
224231
- name: Checkout code
225232
uses: actions/checkout@v5
233+
with:
234+
ref: main
235+
fetch-depth: 1
236+
237+
- name: Pull latest changes
238+
run: git pull origin main
226239

227240
- name: Install Rust
228241
uses: dtolnay/rust-toolchain@stable
@@ -279,10 +292,12 @@ jobs:
279292
steps:
280293
- name: Checkout code
281294
uses: actions/checkout@v5
295+
with:
296+
ref: main
297+
fetch-depth: 1
282298

283-
- name: Update Cargo.toml version
284-
run: |
285-
sed -i.bak 's/^version = ".*"/version = "${{ needs.semantic-version.outputs.version }}"/' Cargo.toml && rm Cargo.toml.bak
299+
- name: Pull latest changes
300+
run: git pull origin main
286301

287302
- name: Install Rust
288303
uses: dtolnay/rust-toolchain@stable

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "repos"
3-
version = "0.0.2"
3+
version = "0.0.3"
44
edition = "2024"
55

66
[dependencies]

0 commit comments

Comments
 (0)