Skip to content

doc: add links to atlas-action and atlas-sync-action #103

doc: add links to atlas-action and atlas-sync-action

doc: add links to atlas-action and atlas-sync-action #103

Workflow file for this run

name: Generate
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
jobs:
gen:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19
- uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: go generate cmd/atlas
run: go generate ./...
- name: Verify generated files are checked in properly
run: |
status=$(git status --porcelain | grep -v "go.\(sum\|mod\)" | cat)
if [ -n "$status" ]; then
echo "you need to run 'go generate ./...' and commit the changes"
echo "$status"
exit 1
fi