-
Notifications
You must be signed in to change notification settings - Fork 149
35 lines (30 loc) · 955 Bytes
/
v3-commit-metadata.yml
File metadata and controls
35 lines (30 loc) · 955 Bytes
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
# Posts a v3 ingest envelope with no records on every push to develop, so the
# `commits` dim stays populated even when no benchmark ran.
name: v3 commit metadata
on:
push:
branches: [develop]
workflow_dispatch:
permissions:
contents: read
jobs:
commit-metadata:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 2
- name: Ingest commit metadata to v3 server
if: vars.V3_INGEST_URL != ''
continue-on-error: true
shell: bash
env:
INGEST_BEARER_TOKEN: ${{ secrets.INGEST_BEARER_TOKEN }}
run: |
echo -n > empty.jsonl
python3 scripts/post-ingest.py empty.jsonl \
--server "${{ vars.V3_INGEST_URL }}" \
--commit-sha "${{ github.sha }}" \
--benchmark-id "commit-metadata" \
--repo-url "${{ github.server_url }}/${{ github.repository }}"