Skip to content

Commit e3ebc4f

Browse files
committed
#109 workflow fix
1 parent a258139 commit e3ebc4f

2 files changed

Lines changed: 10 additions & 18 deletions

File tree

.github/workflows/docs-trigger.yml

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

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

119
jobs:
1210
dispatch:
1311
runs-on: ubuntu-latest
14-
if: >-
15-
github.event_name == 'push'
16-
|| github.event.workflow_run.conclusion == 'success'
1712

1813
steps:
1914
- name: Fire repository_dispatch to site repo
2015
env:
2116
GH_TOKEN: ${{ secrets.DOCS_DISPATCH_TOKEN }}
2217
run: |
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
18+
REF="${{ github.ref_name }}"
19+
SHA="${{ github.sha }}"
3020
if [[ "$REF" == v* ]]; then
3121
VERSION_LABEL="${REF#v}"
3222
else
3323
VERSION_LABEL="dev"
3424
fi
35-
gh api repos/hardwood-hq/hardwood-hq.github.io/dispatches \
36-
-f event_type=publish-docs \
37-
-f "client_payload={\"source_ref\":\"$SHA\",\"version\":\"$VERSION_LABEL\",\"update_latest\":true}"
25+
jq -n \
26+
--arg ref "$SHA" \
27+
--arg ver "$VERSION_LABEL" \
28+
'{event_type: "publish-docs", client_payload: {source_ref: $ref, version: $ver, update_latest: true}}' \
29+
| gh api repos/hardwood-hq/hardwood-hq.github.io/dispatches --input -

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:** Be as fast or faster as parquet-java
20+
* **Fast:** 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)