Skip to content

Go Run

Go Run #8

Workflow file for this run

name: Go Run
on: workflow_dispatch
jobs:
execute:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: Run main.go
run: go run -v main.go
- name: Check for modified files
id: git-check
run: echo ::set-output name=modified::$(if [ -n "$(git status --porcelain)" ]; then echo "true"; else echo "false"; fi)
- name: Update changes in GitHub repository
if: steps.git-check.outputs.modified == 'true'
uses: EndBug/add-and-commit@v9
with:
author_name: dreamerminsk
author_email: [email protected]
message: 'format go files'