forked from mirte-robot/mirte-ros-packages
-
Notifications
You must be signed in to change notification settings - Fork 3
28 lines (28 loc) · 875 Bytes
/
yamlfmt.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: test-yaml-format
on: [push, pull_request]
jobs:
yaml_style_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '>=1.17.0'
- run: go version
- name: check yaml changes
run: |
go install github.com/google/yamlfmt/cmd/yamlfmt@latest
yamlfmt ./**/**.yaml
yamlfmt ./**/**.yml
- name: Verify Changed files
uses: tj-actions/verify-changed-files@v16
id: verify-changed-files
with:
files: |
**/*.yaml
**/*.yml
- name: Run step only when any of the above files change.
if: steps.verify-changed-files.outputs.files_changed == 'true'
run: |-
echo "Changed files: ${{ steps.verify-changed-files.outputs.changed_files }}"
false