Skip to content

Commit a2d8678

Browse files
committed
fix: updating release link on README
1 parent 0ee5503 commit a2d8678

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,24 @@ jobs:
3535

3636
- name: Extract version from code
3737
id: get_version
38-
run: echo "VERSION=$(deno eval 'import { VERSION } from "./src/version.ts"; console.log(VERSION);')" >> $GITHUB_ENV
38+
run: |
39+
VERSION=$(deno eval 'import { VERSION } from "./version.ts"; console.log(VERSION);')
40+
echo "Extracted version: $VERSION"
41+
echo "VERSION=$VERSION" >> $GITHUB_ENV
42+
43+
- name: Verify extracted version
44+
run: |
45+
echo "Version from env: $VERSION"
46+
env:
47+
VERSION: ${{ env.VERSION }}
3948

40-
- name: Update README with version
49+
- name: Update README with version and release URL
4150
run: |
42-
sed -i "s/Version: .*/Version: $VERSION/" README.md
51+
# Update the release link
52+
sed -i "s|https://github.com/thoroc/git-mirror/releases/tag/v[0-9.]*|https://github.com/thoroc/git-mirror/releases/tag/v$VERSION|" README.md
53+
54+
# Update the version in the usage section
55+
sed -i "s|Version:.*|Version: $VERSION|" README.md
4356
4457
- name: Commit README changes
4558
run: |

0 commit comments

Comments
 (0)