Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[rs]build(deps): bump up Gear crates to 1.7.1 #803

Merged
merged 2 commits into from
Feb 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .github/workflows/rs-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ name: '[rs] Release'
on:
push:
tags:
- 'rs/v*'
- 'rs-pin/v*'

env:
# see https://api.github.com/users/github-actions%5Bbot%5D
Expand Down Expand Up @@ -42,7 +42,7 @@ jobs:
outputs:
rc_branch: ${{ steps.rc_branch.outputs.branch }}
r_version: ${{ steps.release_info.outputs.version }}
r_tag: ${{ steps.release_info.outputs.r_tag }}
r_tag: rs/v${{ steps.release_info.outputs.version }}

steps:
- name: Checkout Code
Expand All @@ -53,14 +53,14 @@ jobs:
- name: Extract Release Info
id: release_info
run: |
R_TAG=${GITHUB_REF#refs/tags/}
VERSION=${R_TAG#rs/v}
PIN_TAG=${GITHUB_REF#refs/tags/}
VERSION=${PIN_TAG#rs-pin/v}
if [[ ! $VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+(-[a-z]+\.[0-9]+)?$ ]]; then
echo "'$VERSION' is not a valid semver version"
exit 1
fi
echo "Release Tag: $R_TAG"
echo "r_tag=$R_TAG" >> $GITHUB_OUTPUT
echo "Pin Tag: $PIN_TAG"
echo "pin_tag=$PIN_TAG" >> $GITHUB_OUTPUT
echo "Version: $VERSION"
echo "version=$VERSION" >> $GITHUB_OUTPUT

Expand All @@ -82,6 +82,7 @@ jobs:
git add Cargo.lock
git commit -m "build(rs): update version to v${{ steps.release_info.outputs.version }}"
git push origin "${{ steps.rc_branch.outputs.branch }}"
git push origin --delete "${{ steps.release_info.outputs.pin_tag }}"

ws_tests:
name: Run Workspace Tests
Expand All @@ -90,7 +91,7 @@ jobs:
uses: ./.github/workflows/rs-run-ws-tests.yml
with:
sources_ref: ${{ needs.prepare.outputs.rc_branch }}
gear_node_version: 1.7.0
gear_node_version: 1.7.1

cli_tests:
name: Run CLI Tests
Expand Down Expand Up @@ -222,12 +223,11 @@ jobs:
name: sails-assets
path: ./assets

- name: Re-create Release Tag
- name: Create Release Tag
run: |
R_TAG=${{ needs.prepare.outputs.r_tag }}
git config --global user.name "$GITHUB_USER_NAME"
git config --global user.email "$GITHUB_USER_EMAIL"
git push origin --delete "$R_TAG"
git tag -a "$R_TAG" -m "Release v${{ needs.prepare.outputs.r_version }}"
git push origin "$R_TAG"

Expand Down
Loading