diff --git a/.github/workflows/run-commit.yml b/.github/workflows/run-commit.yml new file mode 100644 index 0000000..cd761e2 --- /dev/null +++ b/.github/workflows/run-commit.yml @@ -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/'