Skip to content

[ci] Fix spec publishing in forks - #2225

Open
kmiller68 wants to merge 1 commit into
WebAssembly:mainfrom
kmiller68:fix-fork-spec-publishing
Open

[ci] Fix spec publishing in forks#2225
kmiller68 wants to merge 1 commit into
WebAssembly:mainfrom
kmiller68:fix-fork-spec-publishing

Conversation

@kmiller68

Copy link
Copy Markdown

publish-spec lists ensure-wasm-latest in its needs, but that job only runs in WebAssembly/spec. A job whose needs include a skipped job is skipped as well, so forks (i.e. proposal repos) stopped publishing their rendered spec to GitHub Pages entirely once they picked up the ensure-wasm-latest job.

Guard publish-spec on nothing having failed instead, which tolerates the skipped job while still blocking publication when a build or the wasm-latest check fails.

publish-spec lists ensure-wasm-latest in its needs, but that job only runs
in WebAssembly/spec. A job whose needs include a skipped job is skipped as
well, so forks (i.e. proposal repos) stopped publishing their rendered spec
to GitHub Pages entirely once they picked up the ensure-wasm-latest job.

Guard publish-spec on nothing having failed instead, which tolerates the
skipped job while still blocking publication when a build or the
wasm-latest check fails.
@kmiller68

Copy link
Copy Markdown
Author

I'm not 100% sure this is correct but it came up while I was working on automatically creating diffs for proposals. https://github.com/kmiller68/spec/actions/runs/31501085024 and seemed to be fixed with this PR: https://github.com/kmiller68/spec/actions/runs/31504405268

@kmiller68

Copy link
Copy Markdown
Author

CC @tlively Since I think this is caused by #2068

@tlively tlively left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, thanks. Do we also need to remove ensure-wasm-latest from the needs list?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants