Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ci): remove invalid check from Wiki workflow #493

Closed
wants to merge 1 commit into from

Conversation

jenstroeger
Copy link
Owner

@jenstroeger jenstroeger commented Feb 27, 2023

Fixes #485

Based on @airtower-luna’s suggestion here. (I’ll test separately in a private repo, too.)

@jenstroeger jenstroeger requested a review from behnazh February 27, 2023 16:28
@behnazh
Copy link
Collaborator

behnazh commented Feb 27, 2023

Interesting. So the issue was using github.repository instead of github.event.repository in the if condition 😄

@@ -31,7 +31,6 @@ permissions:
jobs:
publish-wiki:
name: Publish Github Wiki
if: github.repository.has_wiki == true
Copy link
Collaborator

Choose a reason for hiding this comment

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

How about:

Suggested change
if: github.repository.has_wiki == true
if: github.event.repository.has_wiki == true

If we remove the condition, would the release fail if the repo has no wiki?

Copy link
Owner Author

Choose a reason for hiding this comment

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

I’ve not tried it but would there be an event object (which contains a properly shaped repository object) in a reusable workflow?

Copy link
Owner Author

Choose a reason for hiding this comment

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

Works 👍🏼

@jenstroeger
Copy link
Owner Author

Duplicate of #505

@jenstroeger jenstroeger marked this as a duplicate of #505 Apr 2, 2023
@jenstroeger jenstroeger closed this Apr 2, 2023
@jenstroeger jenstroeger deleted the fix-wiki branch July 19, 2023 13:06
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