Repository navigation
53 lines (48 loc) · 1.5 KB
/
Copy pathchecks.yml
File metadata and controls
53 lines (48 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Example checks
on:
pull_request:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
packages: write
jobs:
dag-contract:
name: Validate dependency runner
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: stable
cache: false
- run: go run ./tools/materialize -check
- run: go test ./tools/...
checks:
name: Central AkôFlow example CI
uses: UFFeScience/akoflow/.github/workflows/examples-ci.yml@main
with:
examples_ref: ${{ github.event.pull_request.head.sha || github.sha }}
publish: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
permissions:
contents: read
packages: write
notify-documentation:
name: Notify AkôFlow documentation
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: Dispatch documentation rebuild
env:
GH_TOKEN: ${{ secrets.AKOFLOW_DOCS_DISPATCH_TOKEN }}
SOURCE_SHA: ${{ github.sha }}
run: |
if [ -z "$GH_TOKEN" ]; then
echo "AKOFLOW_DOCS_DISPATCH_TOKEN is not configured; the daily reconciliation will pick up this change."
exit 0
fi
gh api repos/UFFeScience/akoflow/dispatches \
--method POST \
--field event_type=examples-updated \
--field "client_payload[source_sha]=$SOURCE_SHA"