Skip to content

slug name detection

slug name detection #1

Workflow file for this run

name: Build
on:
push:
branches: [main]
paths:
- 'src/**'
- 'go.mod'
- 'Makefile'
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: Build binaries
run: make build
- name: Check for changes
id: changes
run: |
git diff --quiet bin/ || echo "changed=true" >> $GITHUB_OUTPUT
- name: Commit binaries
if: steps.changes.outputs.changed == 'true'
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add bin/
git commit -m "Build: update binaries [skip ci]"
git push