Skip to content

Commit

Permalink
add step for updating contract template
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisInSky committed Nov 6, 2024
1 parent 2294f5e commit 2a81e5b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/rs-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,17 @@ jobs:
done
cat Cargo.toml
cargo login ${{ secrets.CRATES_IO_TOKEN }}
git checkout -- .
- name: Update Contract Template
run: |
VERSION=${{ needs.prepare.outputs.r_version }}
sed -i -E "s/(variable::set\(\"sails-rs-version\", \")([^\"]+)(\"\);)/\1=$VERSION\3/" templates/set-vars.rhai
git config --global user.name "$GITHUB_USER_NAME"
git config --global user.email "$GITHUB_USER_EMAIL"
git add templates/set-vars.rhai
git commit -m "build(tmpl): update version to v${{ needs.prepare.outputs.r_version }} in contract template"
git push origin "${{ needs.prepare.outputs.rc_branch }}"
release:
name: Create Release
Expand Down

0 comments on commit 2a81e5b

Please sign in to comment.