-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Try to fix the syntax to update latest.txt
- Loading branch information
Showing
1 changed file
with
5 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 |