Create run-commit.yml

This commit is contained in:
Matthieu MOREL 2021-12-22 22:43:32 +01:00 committed by GitHub
parent 5c7609f116
commit a2420eab64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 19 additions and 0 deletions

19
.github/workflows/run-commit.yml vendored Normal file
View File

@ -0,0 +1,19 @@
name: Run and commit
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
node-version: 1.17
- run: gofmt -s -w ./...
- name: Commit changes
uses: EndBug/add-and-commit@v7
with:
author_name: ${{ github.actor }}
author_email: ${{ github.actor }}@users.noreply.github.com
message: 'Update dist/'