Skip to content

Commit

Permalink
build: Try to fix the syntax to update latest.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
nasa42 committed Feb 23, 2025
1 parent 472dba0 commit 182be0e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/release-plz-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Run release-plz
id: release-plz
uses: release-plz/[email protected]
with:
command: release-pr
Expand All @@ -35,14 +36,15 @@ jobs:
- name: Update package.json and latest.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR: ${{ steps.release-plz.outputs.pr }}
RELEASE_PLZ_PR: ${{ steps.release-plz.outputs.pr }}
run: |
set -e
pr_number=${{ fromJSON(steps.release-plz.outputs.pr).number }}
echo "RELEASE_PLZ_PR: $RELEASE_PLZ_PR"
pr_number=$(echo "$RELEASE_PLZ_PR" | jq -r .number)
if [[ -n "$pr_number" ]]; then
gh pr checkout $pr_number
bash ./scripts/update-latest-txt.sh
git add frontend/latest.txt frontend/package.json
git commit -m "Update latest.text and package.json in frontend"
git commit -m "Update latest.txt and package.json in frontend"
git push
fi

0 comments on commit 182be0e

Please sign in to comment.