Skip to content

feat: workflow to automatically update java format + create PR - #7

Merged
mikehardy merged 3 commits into
mainfrom
update-project-workflow
Apr 2, 2026
Merged

feat: workflow to automatically update java format + create PR#7
mikehardy merged 3 commits into
mainfrom
update-project-workflow

Conversation

@russellwheatley

@russellwheatley russellwheatley commented Mar 27, 2026

Copy link
Copy Markdown
Member
  • Adds a cron job GitHub Actions workflow that checks for new google-java-format releases, updates the bundled JAR in lib/, rewrites the hardcoded JAR path in index.js, runs ./test.sh, and opens a PR automatically when an upstream update is available.
  • Also adds workflow_dispatch to the existing test workflow so CI can be run manually on the generated update branch/PR without requiring a PAT.
  • pin all actions to SHAs.
@gemini-code-assist

Copy link
Copy Markdown

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@russellwheatley
russellwheatley marked this pull request as ready for review March 27, 2026 15:33

@mikehardy mikehardy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM - hadn't seen the 'create-pull-request' action before

I see it's on version v8.1.0 now but I've got a task to go through and mitigate supply chain risks in the repos I manage, could we use SHAs for the actions here instead of version numbers, to mitigate the risk of the actions here changing out from under us ?

The sha for create-pull-request v8.1.0 is currently c0f553fe549906ede9cf27b5156039d195d2ece0 FWIW

We may want to set up dependabot for the repo as well, and it appears that dependabot can work with commit SHAs just fine

@russellwheatley

Copy link
Copy Markdown
Member Author

@mikehardy - I've updated them all to use SHAs now 🙏

@mikehardy mikehardy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✨ clean

@mikehardy
mikehardy merged commit 54269ef into main Apr 2, 2026
2 checks passed
@mikehardy
mikehardy deleted the update-project-workflow branch April 2, 2026 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants