Skip to content

Commit e8a10d2

Browse files
committed
git: update docs publihsing workflow
1 parent df8b215 commit e8a10d2

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

.github/workflows/docs.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ jobs:
214214
- name: 📥 Download formal spec HTML
215215
if: steps.check_changes.outputs.has_changes == 'true'
216216
uses: actions/download-artifact@v4
217-
continue-on-error: false
217+
continue-on-error: true
218218
with:
219219
name: formal-spec-html
220220
path: formal-spec-html
@@ -297,6 +297,7 @@ jobs:
297297
echo "Workflow run name: ${{ github.event.workflow_run.name }}"
298298
echo "Workflow run ID: ${{ github.event.workflow_run.id }}"
299299
echo "Ref: ${{ github.ref }}"
300+
echo "Event payload: ${{ toJSON(github.event) }}"
300301
301302
- name: List available artifacts
302303
run: |
@@ -324,6 +325,18 @@ jobs:
324325
name: formal-spec-html
325326
run-id: ${{ github.event.workflow_run.id }}
326327
path: formal-spec-html
328+
github-token: ${{ github.token }}
329+
330+
- name: Check downloaded files
331+
run: |
332+
echo "Checking downloaded formal spec files..."
333+
if [ -d "formal-spec-html" ]; then
334+
echo "formal-spec-html directory exists"
335+
ls -la formal-spec-html/
336+
else
337+
echo "formal-spec-html directory does not exist"
338+
exit 1
339+
fi
327340
328341
- name: 📝 Update formal spec
329342
run: |

.github/workflows/formal-spec-listener.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ jobs:
1919
- name: List available artifacts in formal-spec repo
2020
id: list_artifacts
2121
run: |
22+
echo "Checking for artifacts in formal-spec repo..."
23+
echo "Event payload: ${{ toJSON(github.event.client_payload) }}"
24+
2225
ARTIFACTS=$(curl -s -H "Authorization: token ${{ secrets.LEIOS_TRIGGER_PAT }}" \
2326
"https://api.github.com/repos/input-output-hk/ouroboros-leios-formal-spec/actions/artifacts")
2427
@@ -81,3 +84,12 @@ jobs:
8184
name: formal-spec-html
8285
path: formal-spec-html
8386
retention-days: 1
87+
compression-level: 9
88+
if-no-files-found: error
89+
90+
- name: Verify artifact upload
91+
run: |
92+
echo "Verifying artifact upload..."
93+
curl -s -H "Authorization: token ${{ secrets.LEIOS_TRIGGER_PAT }}" \
94+
"https://api.github.com/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts" | \
95+
jq '.artifacts[] | {name: .name, id: .id, created_at: .created_at, expired: .expired}'

0 commit comments

Comments
 (0)