Skip to content

Commit

Permalink
ci(release-crates): also update fuzz/Cargo.lock (#613)
Browse files Browse the repository at this point in the history
  • Loading branch information
CBenoit authored Dec 14, 2024
1 parent a6b694b commit 6865536
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/release-crates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,37 @@ jobs:
fetch-depth: 512

- name: Run release-plz
id: release-plz
uses: Devolutions/actions-public/release-plz@v1
with:
command: release-pr
git-name: Devolutions Bot
git-email: [email protected]
github-token: ${{ secrets.DEVOLUTIONSBOT_WRITE_TOKEN }}

- name: Update fuzz/Cargo.lock
shell: pwsh
if: ${{ steps.release-plz.outputs.did-open-pr == 'true' }}
run: |
$prRaw = '${{ steps.release-plz.outputs.pr }}'
Write-Host "prRaw: $prRaw"
$pr = $prRaw | ConvertFrom-Json
Write-Host "pr: $pr"
Write-Host "Switch to branch $($pr.head_branch)"
git checkout "$($pr.head_branch)"
Write-Host "Update ./fuzz/Cargo.lock"
cargo update --manifest-path ./fuzz/Cargo.toml
Write-Host "Update last commit"
git add ./fuzz/Cargo.lock
git commit --amend --no-edit
Write-Host "Update the release pull request"
git push --force
# Release unpublished packages.
release:
name: Release crates
Expand Down

0 comments on commit 6865536

Please sign in to comment.