build(deps): bump GoogleCloudPlatform/release-please-action from 3 to 4 #43
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: Format | ||
on: | ||
# trigger on PR | ||
pull_request: | ||
# trigger manually | ||
workflow_dispatch: | ||
jobs: | ||
# JOB to run change detection | ||
detect_file_changes: | ||
runs-on: ubuntu-latest | ||
# Set job outputs to values from filter step | ||
outputs: | ||
markdown: ${{ steps.filter.outputs.markdown }} | ||
frontend: ${{ steps.filter.outputs.bash }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dorny/paths-filter@v2 | ||
id: filter | ||
with: | ||
filters: | | ||
markdown: | ||
- '**.md' | ||
bash: | ||
- '**.bash' | ||
markdown: | ||
needs: changes | ||
Check failure on line 29 in .github/workflows/format.yaml GitHub Actions / FormatInvalid workflow file
|
||
if: ${{ needs.changes.outputs.markdown == 'true' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: asdf-vm/actions/install@v3 | ||
- name: Format markdown with Deno | ||
run: deno fmt *.md | ||
- uses: stefanzweifel/git-auto-commit-action@v5 | ||
name: commit markdown file format | ||
with: | ||
commit_message: "chore: format markdown files" | ||
bash: | ||
needs: changes | ||
if: ${{ needs.changes.outputs.bash == 'true' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: asdf-vm/actions/install@v3 | ||
- name: Format bash with shfmt | ||
run: ./scripts/format.bash | ||
- uses: stefanzweifel/git-auto-commit-action@v5 | ||
name: commit markdown file format | ||
with: | ||
commit_message: "chore: format shell script files" |