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 schedule-daily-1100.yml #5513

Merged

Conversation

t-will-gillis
Copy link
Member

@t-will-gillis t-will-gillis commented Sep 13, 2023

Fixes #5494

What changes did you make?

  • Updated actions/checkout@v3 --> actions/checkout@v4 in schedule-daily-1100.yml
  • Tested to confirm the GHA functions as expected with update
  • Testing was successful, see below: OK to update

Why did you make the changes (we will use this info to test)?

  • Change made for testing the Dependabot recommended version updates for compatibility with existing automation

Supporting file

Note to PR Reviewers

  • The process for testing GHAs is different from procedures described in the CONTRIBUTING.md document. You will want to have an environment set up in your local repo and test the GHAs on the desktop.
  • First, review the following wiki pages Hack for LA's GitHub Actions and follow the "Mini Guide".
    • Pay close attention especially to Steps 6 & 7.
    • Note in Step 7: It is best practice to give your secret an expiration date.
    • Note in Step 7 also: when you are creating your own token, do not give your token the same name that you see in the yaml file. In other words, do not give your token the same name as HfLA's token, otherwise unexpected behavior may result. Any other name is OK (for example, TEST_TOKEN).
  • To continue creating your testing environment, go to your local repo on the desktop and create a new branch for testing:
    • From your "gh-pages" branch, make sure you are synced to HfLA.
    • Select the "gh-pages" button, enter a name for your test branch (such as "test-ghas-for-pr-review"), then select "Create branch". You will make edits and test from here.
    • Next, go to "Settings" on the upper right, scroll down to "Default branch", and select the button with the arrows to switch you default branch to another branch.
    • Find your newly created branch and select it, then "Update", then "I understand, update the default branch".
    • Important- when you are done testing you will want to repeat these steps to reselect "gh-pages" as your default branch.
    • Now, when you make edits to the "website" on your repo you will only affect the new branch.
  • For testing this specific action you will need to make these changes to .github/workflows/schedule-daily-1100.yml:
    • Line 7: Add workflow_dispatch: inline with Line 5's schedule:
    • Line 11: change to reference your GitHub repo, e.g. if: github.repository == 'your-repo-name/website'
    • Line 15: change to '@v4', e.g. uses: actions/checkout@v4
    • Lines 17, 26: change to reference your token, e.g. token: ${{ secrets.TEST_TOKEN }}
  • When all edits are made, commit changes directly to your branch, then select "Actions" from the top menu on your repo. Find "Schedule Daily 1100", then on the right, select "Run workflow". A successful test will generate an error-free log and write an update to _data/external/github-data.json

Post test, update OK
@github-actions
Copy link

Want to review this pull request? Take a look at this documentation for a step by step guide!

From your project repository, check out a new branch and test the changes.

git checkout -b t-will-gillis-dependabot-update-5494 gh-pages
git pull https://github.com/t-will-gillis/website.git dependabot-update-5494

@github-actions github-actions bot added role: back end/devOps Tasks for back-end developers Complexity: Medium Feature: Refactor GHA Refactoring GitHub actions to fit latest architectural norms size: 1 pt labels Sep 13, 2023
@davidwiese davidwiese requested review from davidwiese and removed request for davidwiese September 14, 2023 16:43
@JanineSooThow
Copy link
Member

ETA: By next Monday
Available: weekends

@sheehanrobb
Copy link
Member

sheehanrobb commented Sep 27, 2023

ETA: By next Monday
Availability: Weekends

@JanineSooThow
Copy link
Member

unable to do this PR, removed name off assignee list.

@sheehanrobb sheehanrobb removed their request for review September 30, 2023 22:04
@sheehanrobb
Copy link
Member

Sorry I am unable to complete this PR. I have removed my name from reviewers list

@github-actions github-actions bot added size: 1pt Can be done in 4-6 hours and removed size: 1 pt labels Oct 1, 2023
@allison-truhlar allison-truhlar self-requested a review October 6, 2023 14:49
@allison-truhlar
Copy link
Member

ETA: Tuesday 10/10, EOD
Availability: Mon/Tues 9-5pm ET

@allison-truhlar
Copy link
Member

I still plan to review this - my family has been sick over the long weekend so I'm behind. My new, very cautious, ETA is Friday 10/13 EOD. I am typically available via Slack during the day, 9-5pm.

@dineshsk98
Copy link
Member

ETA: By Monday 10/16
Availability: 11-2 PM Monday to Friday

@brianf4
Copy link
Member

brianf4 commented Oct 11, 2023

Availability: Sunday - Saturday 2pm - 7pm PST
ETA: Before or by Saturday EOD

Copy link
Member

@allison-truhlar allison-truhlar left a comment

Choose a reason for hiding this comment

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

@t-will-gillis This PR looks good - the only code changed was actions/checkout@v3 to actions/checkout@v4 in schedule-daily-1100.yml, as requested in the issue. I tested the change locally and the schedule-daily-1100 workflow ran successfully with the change to actions/checkout@v4. Nice work!

Link to successful run WITH the v4 change: https://github.com/allison-truhlar/website/actions/runs/6512541496/job/17690398322

Link to successful run prior to the v4 change (for comparison): https://github.com/allison-truhlar/website/actions/runs/6512518673/job/17690321198

Copy link
Member

@allison-truhlar allison-truhlar left a comment

Choose a reason for hiding this comment

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

Sorry - I hit comment instead of approve! Copying my comment below for reference

@t-will-gillis This PR looks good - the only code changed was actions/checkout@v3 to actions/checkout@v4 in schedule-daily-1100.yml, as requested in the issue. I tested the change locally and the schedule-daily-1100 workflow ran successfully with the change to actions/checkout@v4. Nice work!

Link to successful run WITH the v4 change: https://github.com/allison-truhlar/website/actions/runs/6512541496/job/17690398322

Link to successful run prior to the v4 change (for comparison): https://github.com/allison-truhlar/website/actions/runs/6512518673/job/17690321198

@t-will-gillis
Copy link
Member Author

t-will-gillis commented Oct 17, 2023

Hey @brianf4 @k-rewd @dineshsk98 just checking in to see whether you have had a chance to get started on your reviews yet, and if so your timeframes for finishing? If you have already started reviewing this, please let me know if you have questions or how I can help you. I would like to wrap this PR up in the next day or two because there are currently 3 additional PRs that are waiting on this one to be completed.

If you have not started reviewing this yet, I would like to ask if you would consider un-assigning yourself from this one. There will be many more PRs involving GHAs coming up. (This includes #5637 which is over two weeks old and needs a review. )

@dineshsk98
Copy link
Member

Hey @brianf4 @k-rewd @dineshsk98 just checking in to see whether you have had a chance to get started on your reviews yet, and if so your timeframes for finishing? If you have already started reviewing this, please let me know if you have questions or how I can help you. I would like to wrap this PR up in the next day or two because there are currently 3 additional PRs that are waiting on this one to be completed.

If you have not started reviewing this yet, I would like to ask if you would consider un-assigning yourself from this one. There will be many more PRs involving GHAs coming up. (This includes #5637 which is over two weeks old and needs a review. )

Sorry, for the delay. I started the review, but got stuck with other work. I will unassign myself off of this one.

@dineshsk98 dineshsk98 removed their request for review October 17, 2023 05:11
@k-rewd k-rewd removed their request for review October 17, 2023 05:20
@brianf4
Copy link
Member

brianf4 commented Oct 18, 2023

@t-will-gillis Sorry got caught up with work as well but currently working on it. Will try to have it reviewed by tonight or by tomorrow.

@t-will-gillis
Copy link
Member Author

Hey @dineshsk98 and @brianf4 - thanks for the notes and updates

Copy link
Member

@brianf4 brianf4 left a comment

Choose a reason for hiding this comment

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

Hey @t-will-gillis, I just ran the workflow changes locally for the schedule-daily-1100.yml file and everything checks out. The workflow ran successfully with no errors on my end.

@t-will-gillis t-will-gillis merged commit e25f961 into hackforla:gh-pages Oct 18, 2023
1 check passed
@t-will-gillis t-will-gillis deleted the dependabot-update-5494 branch October 18, 2023 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Complexity: Medium Feature: Refactor GHA Refactoring GitHub actions to fit latest architectural norms role: back end/devOps Tasks for back-end developers size: 1pt Can be done in 4-6 hours
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Confirm dependabot version update to schedule-daily-1100.yml
6 participants