Skip to content

Commit 3fcd7d2

Browse files
committed
git: update workflow for docs publishing from formal-spec
1 parent 75ae928 commit 3fcd7d2

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

.github/workflows/docs.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ jobs:
164164
- name: Check for site or visualizer changes
165165
id: check_changes
166166
run: |
167-
if [ "${{ github.event_name }}" == "workflow_run" ]; then
168-
echo "Changes detected from formal-spec workflow"
167+
if [ "${{ github.event_name }}" == "workflow_run" ] || [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
168+
echo "Changes detected from formal-spec workflow or manual trigger"
169169
echo "has_changes=true" >> $GITHUB_OUTPUT
170170
else
171171
# For PR or push events, check for actual changes

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

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,12 @@ jobs:
1818
# First try to download previous artifacts to have as fallback
1919
- name: 📥 Download previous formal spec HTML for fallback
2020
id: download_previous
21-
uses: dawidd6/action-download-artifact@v6
21+
uses: actions/download-artifact@v4
2222
continue-on-error: true
2323
with:
2424
name: formal-spec-html
2525
path: previous-formal-spec-html
26-
if_no_artifact_found: ignore
27-
allow_forks: false
26+
if-no-files-found: ignore
2827

2928
- name: Check previous artifacts
3029
id: check_previous
@@ -40,20 +39,19 @@ jobs:
4039
# Try to download directly from GitHub API to see artifacts in the formal-spec repo
4140
- name: List available artifacts in formal-spec repo
4241
run: |
43-
curl -s -H "Authorization: token ${{ secrets.FORMAL_SPEC_PAT || github.token }}" \
42+
curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN || github.token }}" \
4443
"https://api.github.com/repos/input-output-hk/ouroboros-leios-formal-spec/actions/artifacts" | \
4544
jq '.artifacts[] | {name: .name, id: .id, created_at: .created_at, expired: .expired}' || true
4645
4746
- name: 📥 Download formal spec HTML
4847
id: download_new
49-
uses: dawidd6/action-download-artifact@v6
48+
uses: actions/download-artifact@v4
5049
continue-on-error: true
5150
with:
5251
name: formal-spec-html
53-
repo: input-output-hk/ouroboros-leios-formal-spec
52+
repository: input-output-hk/ouroboros-leios-formal-spec
5453
path: new-formal-spec-html
55-
token: ${{ secrets.FORMAL_SPEC_PAT || github.token }}
56-
allow_forks: false
54+
github-token: ${{ secrets.GITHUB_TOKEN || github.token }}
5755

5856
- name: Prepare final formal spec HTML
5957
run: |

0 commit comments

Comments
 (0)