Skip to content

Update Jupyter Book Preview Workflow #136

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

Merged
merged 5 commits into from
Sep 15, 2021
Merged

Conversation

andersy005
Copy link
Member

@andersy005 andersy005 commented Sep 14, 2021

This PR

(1) replaces the custom ProjectPythia/actions/comment-netlify-preview-in-pr GitHub action with a combination of actively maintained actions.

(2) Updates an existing comment (with a preview URL) instead of creating a new comment for each git push.

Note: This PR needs to be merged for changes in the preview-book workflow https://github.com/ProjectPythia/pythia-foundations/blob/96fb41393d79da002d376aa9a8ca5d49401db6ef/.github/workflows/preview-book.yaml to take effect...

@github-actions
Copy link

github-actions bot commented Sep 14, 2021

This pull request is being automatically built with GitHub Action + Netlify. To see the status of your deployment, click below.

🚧 Deployment in progress for git commit SHA: 96fb413

@github-actions
Copy link

🚀 📚 Preview for git commit SHA: ca7f8ee at: https://614121e88c16cd22a2aaadd9--pythia-foundations.netlify.app

@github-actions
Copy link

🚀 📚 Preview for git commit SHA: 0b1f538 at: https://61412482ed0b051aea46d021--pythia-foundations.netlify.app

@ProjectPythia ProjectPythia deleted a comment from github-actions bot Sep 14, 2021
@github-actions
Copy link

🚀 📚 Preview for git commit SHA: d40b700 at: https://61412761d68fa71abf4d9851--pythia-foundations.netlify.app

@github-actions
Copy link

🚀 📚 Preview for git commit SHA: d40b700 at: https://6141276aed0b0526ab46ca96--pythia-foundations.netlify.app

@andersy005 andersy005 marked this pull request as ready for review September 14, 2021 22:53
@andersy005 andersy005 requested a review from a team as a code owner September 14, 2021 22:53
@andersy005 andersy005 requested review from brian-rose and jukent and removed request for a team September 14, 2021 22:53
@andersy005 andersy005 added infrastructure Infrastructure related issue ready for review labels Sep 14, 2021
@github-actions
Copy link

🚀 📚 Preview for git commit SHA: 96fb413 at: https://61412975c60e1f244ec1bc7a--pythia-foundations.netlify.app

@github-actions
Copy link

🚀 📚 Preview for git commit SHA: 96fb413 at: https://614129a4c60e1f25b8c1bcb9--pythia-foundations.netlify.app

Copy link
Member

@brian-rose brian-rose left a comment

Choose a reason for hiding this comment

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

Nice! Relying less on custom GitHub machinery seems to be a step in the right direction towards sustainability for our project. Also, fewer bot-generated comments and out of date links in each PR discussion should help keep us oriented.

I don't understand the GitHub Actions details well enough to give this a very thorough review, but I'm fine with merging this in order to see what it really does.

@andersy005
Copy link
Member Author

Provided I did everything right when a new PR is created, the PR is updated with this comment

test-2

Once the PR has been built, this comment is updated to

test-1

Ignore the fact that Preview URL in the screenshot is pointing to a commit SHA (It's what I had during the prototyping phase)

@jukent
Copy link
Contributor

jukent commented Sep 15, 2021

I agree with @brian-rose This looks good to me, and I can see that it works on this PR, but I have much to learn about GitHub actions.

@andersy005
Copy link
Member Author

Thank you for the review, @jukent and @brian-rose! I'm merging this and will fix any broken pieces in subsequent PRs :)

@andersy005 andersy005 merged commit 5e85301 into main Sep 15, 2021
@andersy005 andersy005 deleted the deprecate-custom-action branch September 15, 2021 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infrastructure Infrastructure related issue ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants