Skip to content

Commit f538ce0

Browse files
committed
Install generated verify workflow (bootstrap step)
1 parent 6f4902f commit f538ce0

1 file changed

Lines changed: 56 additions & 0 deletions

File tree

.github/workflows/verify.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# Generated by labkit (python -m labkit gen). Do not edit by hand.
2+
# Edit labs/<lab>/publish.config.json and regenerate; drift fails `labkit doctor`.
3+
# Install into operatorstack/yield at .github/workflows/verify.yml (bootstrap step).
4+
name: Verify Yield distribution
5+
6+
on:
7+
pull_request:
8+
push:
9+
branches: [main]
10+
11+
permissions:
12+
contents: read
13+
14+
concurrency:
15+
group: verify-yield-${{ github.ref }}
16+
cancel-in-progress: true
17+
18+
jobs:
19+
test:
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
os: [ubuntu-latest, macos-latest, windows-latest]
24+
runs-on: ${{ matrix.os }}
25+
steps:
26+
- uses: actions/checkout@v4
27+
- uses: actions/setup-go@v7
28+
with:
29+
go-version-file: go.mod
30+
cache: true
31+
- run: go test ./...
32+
- run: go build ./...
33+
34+
verify-sync-provenance:
35+
if: >-
36+
github.event_name == 'pull_request' &&
37+
github.event.pull_request.head.repo.full_name == github.repository &&
38+
startsWith(github.head_ref, 'sync/intelligence-flow-')
39+
needs: test
40+
runs-on: ubuntu-latest
41+
steps:
42+
- uses: actions/checkout@v4
43+
with:
44+
ref: ${{ github.event.pull_request.head.sha }}
45+
- name: Verify generated projection provenance
46+
env:
47+
HEAD_BRANCH: ${{ github.head_ref }}
48+
PR_AUTHOR: ${{ github.event.pull_request.user.login }}
49+
shell: bash
50+
run: |
51+
source_repo="$(jq -r '.source.repository' UPSTREAM.json)"
52+
source_commit="$(jq -r '.source.commit' UPSTREAM.json)"
53+
short="${source_commit:0:12}"
54+
[[ "$PR_AUTHOR" == "operator-stack-publisher[bot]" ]]
55+
[[ "$source_repo" == "operatorstack/intelligence-flow" ]]
56+
[[ "$HEAD_BRANCH" == "sync/intelligence-flow-$short" ]]

0 commit comments

Comments
 (0)