Bump github.com/spf13/cast from 1.7.0 to 1.7.1 #217
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_target: | |
branches: [ master ] | |
jobs: | |
gofmt: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
ref: ${{ github.head_ref }} | |
token: ${{ secrets.GH_PAT }} | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.19' | |
- name: gofmt | |
run: | | |
if [ "$(gofmt -s -l -w . | wc -l)" -gt 0 ]; then | |
git config --local user.name 'github-actions[bot]' | |
git config --local user.email '41898282+github-actions[bot]@users.noreply.github.com' | |
git add --all | |
git commit -m "gofmt" | |
fi | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
branch: ${{ github.head_ref }} | |
github_token: ${{ secrets.GH_PAT }} |