| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
This PR introduces a new GitHub Actions workflow to automate updating the start-proxy action’s release assets and opening draft PRs.
.github/workflows/update-proxy-release.yml:5
- mbg/update-proxy-binaries # for testing
.github/workflows/update-proxy-release.yml:55
This PR updates the \`start-proxy\` action to use the private registry proxy binaries that
.github/workflows/update-proxy-release.yml:44
sed -i '' "s/\"v2.0.[0-9]*\"/\"v2.0.$NOW\"/g" ./src/start-proxy-action.ts
Sorry, something went wrong.
There was a problem hiding this comment.
Is there prior art for doing releases like this?
I'm not a huge fan of doing text replacements in typescript files with workflow inputs...
Sorry, something went wrong.
Agreed, perhaps a check that the tag is in the expected format before proceeding would be good?
Depends on what you are asking about specifically. This PR just automates a few steps we'd have to perform manually otherwise. The whole arrangement with how the update-job-proxy binaries are made available to the action has always been a bit temporary, but we haven't prioritised improvements here (see the linked epic). |
Sorry, something went wrong.
Yes. Let's add that in. It's also nice to have to prevent silly bugs.
NP. Thanks for the extra context. |
Sorry, something went wrong.
Done, along with an additional check to make sure that the release actually exists. We could take this further to check that the release assets include the three expected files, but this is probably enough sanity checking in the workflow for now -- I am not expecting this to be used much. I'd only expect an increase in usage if we automate the process end-to-end, but we may well choose to store the proxy binaries elsewhere then. |
Sorry, something went wrong.
There was a problem hiding this comment.
Great.
Except for the remaining testing knobs this is in a fine shape.
I also did a general review of the Actions parts of this and have a a few isolated comments.
Sorry, something went wrong.
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 # ensure we have all tags and can push commits | ||
| ref: main |
There was a problem hiding this comment.
If we move this checkout earlier than the Check that the release exists step, then gh will pick up the repository to query automatically, allowing us to drop the --repo. Checkout is fast enough that it can go before the error checking IMO.
Sorry, something went wrong.
There was a problem hiding this comment.
I had considered that, but explicitly adding the --repo argument isn't much of an inconvenience so it makes more sense to me to perform the check first.
Sorry, something went wrong.
There was a problem hiding this comment.
🎉
Sorry, something went wrong.
|
First workflow run on main: https://github.com/github/codeql-action/actions/runs/15848800951/job/44677031711 Resulting PR: #2947 Looks like it is working fine outside of test conditions, too. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This PR adds a new workflow which automates the creation of PRs that update which release is used by the start-proxy action to pull binaries of the update-job-proxy from.
Previously, I manually created PRs such as this one for that. The new workflow here creates similar ones, such as this example.
This PR currently contains a commit that adds a push trigger (limited to this branch) for testing, which should be removed before merging this PR.
Merge / deployment checklist