Skip to content

Commit

Permalink
ci: format files edited by release-plz (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
sripwoud authored Jul 23, 2024
1 parent a341ccd commit 5ba682f
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ permissions:
on:
push:
branches: [main]
workflow_dispatch:

jobs:
release:
Expand All @@ -18,7 +17,21 @@ jobs:
- 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: |
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"

0 comments on commit 5ba682f

Please sign in to comment.