Skip to content

Commit

Permalink
ci: enable auto format to run on PRs (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
jthegedus committed Jun 30, 2022
1 parent ed55601 commit f59e332
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/format.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
name: Format

on:
# trigger format on every push to main branch if files changed
push:
branches:
- main
# trigger deployment manually
# trigger on PR
pull_request:
# trigger manually
workflow_dispatch:

jobs:
# JOB to run change detection
changes:
detect_file_changes:
runs-on: ubuntu-latest
# Set job outputs to values from filter step
outputs:
Expand Down Expand Up @@ -43,7 +41,7 @@ jobs:

bash:
needs: changes
if: ${{ needs.changes.outputs.markdown == 'true' }}
if: ${{ needs.changes.outputs.bash == 'true' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit f59e332

Please sign in to comment.