Skip to content

Commit

Permalink
fix order
Browse files Browse the repository at this point in the history
  • Loading branch information
nefrathenrici committed Mar 20, 2024
1 parent 2d4a5c0 commit d94460f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/yaml_format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@ jobs:
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: dorny/[email protected]
id: filter
with:
filters: |
yaml_file_change:
- added|modified: '**.yml'
- name: Setup Go
uses: actions/setup-go@v4
with:
Expand All @@ -30,13 +24,19 @@ jobs:
go install github.com/google/yamlfmt/cmd/yamlfmt@latest
- name: Format YAML files
run: yamlfmt config
- uses: dorny/[email protected]
id: filter
with:
filters: |
yaml_file_change:
- added|modified: '**.yml'
- name: Add formatting changes
if: steps.filter.outputs.julia_file_change == 'true'
if: steps.filter.outputs.yaml_file_change == 'true'
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "GitHub Actions"
git add .
git commit -m "Automatic YAML formatting"
- name: Push changes to current branch
if: steps.filter.outputs.julia_file_change == 'true'
if: steps.filter.outputs.yaml_file_change == 'true'
run: git push origin ${{ github.head_ref }}

0 comments on commit d94460f

Please sign in to comment.