Skip to content

Commit

Permalink
fix: try again
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgeparavicini committed Nov 20, 2024
1 parent 749bafb commit 2d439d0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ jobs:
project-name: [Rapidata.MongoDB.Migrations, Rapidata.MongoDB.Migrations.AspNetCore]
name: Create New version
runs-on: ubuntu-latest
env:
CURRENT_PROJECT: ${{ matrix.project-name }}
steps:
- name: 🔻 Checkout
uses: actions/checkout@v4
Expand All @@ -35,6 +33,7 @@ jobs:
@semantic-release/exec
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CURRENT_PROJECT: ${{ matrix.project-name }}

- name: Pack & Publish to NuGet
if: ${{ steps.release.outputs.new_release_version }}
Expand Down
2 changes: 1 addition & 1 deletion .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
[
"@semantic-release/exec",
{
"prepareCmd": "../updateVersion.sh '${nextRelease.version}' 'src/${CURRENT_PROJECT}/${CURRENT_PROJECT}.csproj'"
"prepareCmd": "../updateVersion.sh '${nextRelease.version}'"
}
],
[
Expand Down
2 changes: 1 addition & 1 deletion updateVersion.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash

echo "new_release_version=$1" >> "$GITHUB_OUTPUT"
sed -i "s#<Version>.*#<Version>$1</Version>#" "$2"
sed -i "s#<Version>.*#<Version>$1</Version>#" "src/$CURRENT_PROJECT/$CURRENT_PROJECT.csproj"

0 comments on commit 2d439d0

Please sign in to comment.