Skip to content

Commit

Permalink
build: Run the latest.txt script after release-pr. (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
nasa42 authored Feb 23, 2025
1 parent 42de185 commit 472dba0
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/release-plz-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,25 @@ jobs:
fetch-depth: 0
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Update package.json and latest.txt
run: ./scripts/update-latest-txt.sh
- name: Run release-plz
uses: release-plz/[email protected]
with:
command: release-pr
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
# based on https://release-plz.dev/docs/github/output#example-commit-files-to-the-release-pr
- name: Update package.json and latest.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR: ${{ steps.release-plz.outputs.pr }}
run: |
set -e
pr_number=${{ fromJSON(steps.release-plz.outputs.pr).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 push
fi

0 comments on commit 472dba0

Please sign in to comment.