model-registry/.github/workflows/prepare.yml

30 lines
802 B
YAML

on:
workflow_call
permissions: # set contents: read at top-level, per OpenSSF ScoreCard rule TokenPermissionsID
contents: read
jobs:
prepare:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5.0.0
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.24"
- name: Prepare
run: make clean build/prepare
- name: Update go.work.sum file
run: make update/worksum
- name: Check if there are uncommitted file changes
run: |
clean=$(git status --porcelain)
if [[ -z "$clean" ]]; then
echo "Empty git status --porcelain: $clean"
else
echo "Uncommitted file changes detected: $clean"
git diff
exit 1
fi