Skip to content

Commit a258139

Browse files
committed
#109 workflow fix
1 parent 99754f2 commit a258139

2 files changed

Lines changed: 18 additions & 7 deletions

File tree

.github/workflows/docs-trigger.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,36 @@ name: Trigger documentation publish
22

33
on:
44
push:
5-
branches: [main]
6-
paths: ['docs/**']
75
tags: ['v*']
6+
workflow_run:
7+
workflows: [Build]
8+
types: [completed]
9+
branches: [main]
810

911
jobs:
1012
dispatch:
1113
runs-on: ubuntu-latest
14+
if: >-
15+
github.event_name == 'push'
16+
|| github.event.workflow_run.conclusion == 'success'
1217
1318
steps:
1419
- name: Fire repository_dispatch to site repo
1520
env:
1621
GH_TOKEN: ${{ secrets.DOCS_DISPATCH_TOKEN }}
17-
VERSION: ${{ github.ref_name }}
1822
run: |
19-
if [[ "$GITHUB_REF" == refs/tags/v* ]]; then
20-
VERSION_LABEL="${VERSION#v}"
23+
if [ "${{ github.event_name }}" = "push" ]; then
24+
REF="${{ github.ref_name }}"
25+
SHA="${{ github.sha }}"
26+
else
27+
REF="${{ github.event.workflow_run.head_branch }}"
28+
SHA="${{ github.event.workflow_run.head_sha }}"
29+
fi
30+
if [[ "$REF" == v* ]]; then
31+
VERSION_LABEL="${REF#v}"
2132
else
2233
VERSION_LABEL="dev"
2334
fi
2435
gh api repos/hardwood-hq/hardwood-hq.github.io/dispatches \
2536
-f event_type=publish-docs \
26-
-f "client_payload={\"source_ref\":\"${{ github.sha }}\",\"version\":\"$VERSION_LABEL\",\"update_latest\":true}"
37+
-f "client_payload={\"source_ref\":\"$SHA\",\"version\":\"$VERSION_LABEL\",\"update_latest\":true}"

docs/content/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Goals of the project are:
1717

1818
* **Light-weight:** Implement the Parquet file format avoiding any 3rd party dependencies other than for compression algorithms (e.g. Snappy)
1919
* **Correct:** Support all Parquet files which are supported by the canonical [parquet-java](https://github.com/apache/parquet-java) library
20-
* **Fast:** As fast or faster as parquet-java
20+
* **Fast:** Be as fast or faster as parquet-java
2121
* **Complete:** Add a Parquet file writer (after 1.0)
2222

2323
Latest version: 1.0.0.Alpha1, 2026-02-26

0 commit comments

Comments
 (0)