-
Notifications
You must be signed in to change notification settings - Fork 4
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
Updated Daniel Ridge workflows #23
Conversation
mistaken the workflows to run automatically on changes to branch
Wanted to note two things:
Cannot complete this step of original issue due to current versions being up to date on both workflows. No issues are made as versions are up to date, but workflow passes as expected. I assumed there should be no issue since the issue creation steps of the workflows were not modified at all nor mentioned to have any problems. Recent workflows on the original repository have also passed with no issues. Originally tried to replace the From: but |
Wanted to note two things:
Cannot complete this step of original issue due to current versions being up to date on both workflows. No issues are made as versions are up to date, but workflow passes as expected. I assumed there should be no issue since the issue creation steps of the workflows were not modified at all nor mentioned to have any problems. Recent workflows on the original repository have also passed with no issues. Let me know if this needs to be explicitly tested or if it's fine not to, I am not exactly sure how to prompt the workflow to create an issue when the gh-pages and ruby version are up to date. Originally tried to replace the From: but |
Hi @andyphancode this is Roslyn Wythe logged into danielridgebot. Please advise - I don't understand how the version of github-pages gem in ghpages-docker could be up to date. Nothing in that repo, including Dockerfile has been updated in 2 years. When a new image is created, it is uploaded to hackforlaops/ghpages which shows that the image was last pushed 2 years ago. |
@danielridgebot Thanks for inquiring. As far as I understand, the two relevant workflows in the Daniel Ridge Repo run daily and are intended to perform the following:
It seems that since GitHub Pages hasn't updated their required Ruby version on versions.json in 2 years, there hasn't been an issue opened or need to update it since then. Since investigating this inquiry, I actually noticed two issues that might be of concern:
Update on previous comment: I went ahead and tested .github/workflows/check-gh-pages-version.yml by just putting an older version in github-pages-gem.txt (not sure why I didn't think of that earlier) and managed to have a successful workflow run and issue created so I checked off the final task on the original issue. I'm still wary about concern #1 since the code for pushing a commit is unchanged. Image below is the error associated with the linked workflow in concern #1. From my forked repository, the workflow successfully pushed a commit to update my github-pages-gem.txt from I'm not sure if this concern is out of the scope of the original issue butt I could suggest a code change from:
to:
to potentially circumvent this error. Let me know if I should add it or if it should be delegated to a different future issue. |
Thank you @andyphancode for providing that information and for performing additional testing
|
Hi @roslynwythe , Thanks for providing some context to the history of this issue. The events of the logs seem consistent. It seems that the workflow failed to run completely as a result of a token issue (May 14 12:06 PDT) but the workflow at least made it through with the code to push this commit thus updating the release version from I'm a bit confused regarding points 2 and 3 as I don't understand how From my understanding the DanielRidgeBot repo is making a fetch request to GitHub Pages versions.json to check on As such, whenever GitHub Pages decides to update their version dependencies on It appears this process occurred on May 14, causing step 1 to happen ( Let me know if I am misunderstanding something regarding this issue. |
@andyphancode The terminology is a bit confusing, but I'm saying that the version of I agree that when a new image is built, it will automatically update with the new version. I was hoping that the DanielRidge workflow would generate the |
I see, this is clear to me now, thank you for the clarification in this otherwise confusing issue! I agree that the easiest way would be to change the current version to 227, so I will add that to the PR. Let me know if there are any other concerns. |
Thank you @andyphancode . Please resolve the merge conflict ,then let me know via Slack. Based on our previous discussion I believe you should retain the line "227". |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job @andyphancode updating the versions and syntax for checking for modified files in this PR. Thanks also for updating github-pages-gem.txt so that the workflow will generate an issue as intended.
Fixes #6979
What changes did you make?
actions/checkout@v3
to v4 (seeCheck out Daniel Ridge repo
step on both workflow files).Check for modified files
step result to be set in Environment variable instead of variable through to-be deprecatedset-output
method (seeCheck for modified files
step on both workflows).env.modified
instead of set-output variable,steps.git-check.outputs.modified
(see last two steps on both workflow files).Why did you make the changes (we will use this info to test?
set-output
and Node.js 16 actions being deprecated, so adjustments were made to update to address those warnings.Below are screenshots of manually triggered workflows showing no warnings as compared to before.
Workflow logs
Before:
After:
Workflow jobs page
Before
After