File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed
Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff 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 : |
You can’t perform that action at this time.
0 commit comments