Skip to content

github: schedule therock deps update to run weekly on Mondays - #292

Open
lumachad wants to merge 1 commit into
amd-stagingfrom
users/lumachad/amd-staging/scheduled_therock_ref_updates
Open

github: schedule therock deps update to run weekly on Mondays#292
lumachad wants to merge 1 commit into
amd-stagingfrom
users/lumachad/amd-staging/scheduled_therock_ref_updates

Conversation

@lumachad

@lumachad lumachad commented Aug 19, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Enable the scheduled trigger in therock-deps-update.yml, set to run every Monday at 03:17 UTC.
  • Gate the --dry-run flag explicitly on workflow_dispatch so scheduled runs always execute for real.

Test plan

  • Verify the workflow appears under the scheduled triggers in the Actions tab after merge.
  • Trigger manually with dry_run: true to confirm the dry-run path still works.
  • Trigger manually with dry_run: false to confirm the real-run path works.

@lumachad lumachad self-assigned this Aug 19, 2026
@lumachad
lumachad marked this pull request as ready for review August 19, 2026 10:55
@lumachad
lumachad requested a review from a team as a code owner August 19, 2026 10:55
@lumachad lumachad assigned aktemur and lancesix and unassigned lumachad Aug 19, 2026
- name: Update TheRock references
run: |
python3 .github/scripts/update_therock_deps.py ${{ inputs.dry_run && '--dry-run' || '' }}
python3 .github/scripts/update_therock_deps.py ${{ github.event_name == 'workflow_dispatch' && inputs.dry_run && '--dry-run' || '' }}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

shouldn't this be ( github.event_name == 'workflow_dispatch' || inputs.dry_run) && '--dry-run'`?

i.e. use --dry-run if either dry_run is part of the inputs, or if dealing with workfloaw_dispatch?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I don't think so. With your suggestion I think we'd have something like this:

  • Manual dispatch + dry_run=false → (true || false) && '--dry-run' = --dry-run gets passed, which is wrong.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

indeed. But it feels odd to have the event type override the parameter.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Feels odd but acceptable or feels odd and you want it changed? :-)

@lancesix lancesix removed their assignment Aug 20, 2026
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.

3 participants