Skip GH action workflow on changes to md files #116
Workflow file for this run
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: gofmt | |
on: | |
pull_request: | |
branches: | |
- main | |
# Skip CI when changes are made to *.md files | |
paths-ignore: | |
- '**.md' | |
permissions: | |
contents: read | |
jobs: | |
gofmt: | |
name: gofmt | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version-file: go.mod | |
check-latest: true | |
- name: gofmt | |
run : | | |
gofmt -s -w . | |
git diff --exit-code |