Skip to content

Commit 7fd7ca6

Browse files
committed
Update workflow 2.
1 parent 8d30446 commit 7fd7ca6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/fly-deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,17 +64,17 @@ jobs:
6464
git checkout main
6565
git pull origin main
6666
67-
# Update package.json
67+
# Update version in all relevant files
6868
jq --arg v "$VERSION" '.version = $v' package.json > package.tmp.json && mv package.tmp.json package.json
69-
# Update Go server version
69+
jq --arg v "$VERSION" '.version = $v' frontend/package.json > frontend/package.tmp.json && mv frontend/package.tmp.json frontend/package.json
7070
sed -i "s/const version = .*/const version = \"$VERSION\"/" go-relay/cmd/server/main.go
7171
7272
# Configure git
7373
git config --global user.name 'github-actions[bot]'
7474
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
7575
7676
# Commit and push changes only if something actually changed
77-
git add package.json go-relay/cmd/server/main.go
77+
git add package.json frontend/package.json go-relay/cmd/server/main.go
7878
if git diff --cached --quiet; then
7979
echo "Version already up to date, skipping commit"
8080
else

0 commit comments

Comments
 (0)