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

Update action to work with user/organization sites #11

Merged
merged 1 commit into from
Oct 21, 2022

Conversation

ejfrick
Copy link
Contributor

@ejfrick ejfrick commented Jun 29, 2022

@rossjrw This action currently does not work with organization or user sites. Since the format for user/org sites is different from project sites, it will attempt to deploy to ORG_NAME.github.io/ORG_NAME.github.io/UMBRELLA_FOLDER which just redirects to ORG_NAME.github.io. I added some logic to check whether the repo belongs to an org/user site & create the pagesurl var accordingly. Otherwise it will use the current sed command to create the pagesurl var.

@ejfrick
Copy link
Contributor Author

ejfrick commented Jun 29, 2022

@rossjrw do you need me to make this change from not-a-fork and resubmit? Saw the CI failed.

@rossjrw
Copy link
Owner

rossjrw commented Jun 29, 2022

@ENG-Jole thanks for your contribution - I'll take a look when I get a chance!

The CI has failed because the preview system doesn't currently support previews for forks, which I'm working on fixing (see #3) - unfortunately I've recently started a new job and haven't found much time to properly resume work on it. Your changes are probably fine; I'll just test them locally. (There's no way you could contribute changes without forking, as only I currently have write access to this repository).

@ejfrick
Copy link
Contributor Author

ejfrick commented Jun 29, 2022

@rossjrw no worries! Thanks for your hard work making this, absolute lifesaver 😊

chadoh added a commit to AhaLabs/ahalabs.github.io that referenced this pull request Aug 8, 2022
Uses fix from rossjrw/pr-preview-action#11,
which respects user/organization sites
@rossjrw rossjrw added the enhancement New feature or request label Sep 3, 2022
@Qiming-Liu
Copy link

Hope this merge soon

@rossjrw rossjrw merged commit eac2838 into rossjrw:main Oct 21, 2022
aidanheerdegen pushed a commit to ACCESS-NRI/pr-preview-action that referenced this pull request Oct 25, 2022
Update action to work with user/organization sites
aidanheerdegen pushed a commit to ACCESS-NRI/pr-preview-action that referenced this pull request Oct 25, 2022
Update action to work with user/organization sites
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants