release #30
Workflow file for this run
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
name: release | ||
permissions: | ||
pull-requests: write | ||
contents: write | ||
on: | ||
push: | ||
branches: [main] | ||
workflow_dispatch: | ||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
pr-branch: echo ${{ steps.release-plz.outputs.pr }} | jq '.head_branch' | ||
pr-created: ${{ steps.release-plz.outputs.prs_created }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
# release-plz can create release notes and update changelogs based on (conventional) commits. But only if all the history is fetched | ||
fetch-depth: 0 | ||
- name: Install rust toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
- name: Run release-plz | ||
id: release-plz | ||
uses: MarcoIeni/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} | ||
- uses: fregante/[email protected] | ||
- name: install dprint | ||
run: curl -fsSL https://dprint.dev/install.sh | sh -s 0.47.2 > /dev/null 2>&1 | ||
- name: fmt | ||
run: | | ||
Check failure on line 36 in .github/workflows/release.yml GitHub Actions / releaseInvalid workflow file
|
||
pr-branch="${{ fromJSON(steps.release-plz.outputs.pr).head_branch) }}" | ||
git pull | ||
git checkout "$pr_branch" | ||
$HOME/.dprint/bin/dprint fmt | ||
git commit -am 'chore: format files' | ||
git push origin "$pr_branch" |