-
Hi everyone -- I support a bunch of developers on an air-gapped network that use this extension quite heavily, so I set up a process to automatically mirror the extension to one of my systems, then copy it to the air-gapped network. I am trying to update my mirror script for the new file/URL format (java-linux-x64-$version-$number.vsix) but I can't figure out where the "$number" value is coming from at the end of the filename.
And more importantly, how can I figure out that $number in my script? I'm hoping that there is a file buried in the source tree that I didn't see that I can read and figure it out. What I am doing now:
Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The number comes from the But you should be able to identify the assets you need by using Github's API: https://docs.github.com/en/rest/releases/assets?apiVersion=2022-11-28#list-release-assets You could also query the VS Code Marketplace API to do something similar, but I don't have pointers to give you. |
Beta Was this translation helpful? Give feedback.
The number comes from the
$GITHUB_RUN_NUMBER
value https://github.com/redhat-developer/vscode-java/blob/master/.github/workflows/release.yml#L142. It's quite unpredictable unfortunately.But you should be able to identify the assets you need by using Github's API: https://docs.github.com/en/rest/releases/assets?apiVersion=2022-11-28#list-release-assets
You could also query the VS Code Marketplace API to do something similar, but I don't have pointers to give you.