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

Automated Salt submission via GitHub Action #1898

Open
lukasc-ubc opened this issue Oct 17, 2024 · 2 comments
Open

Automated Salt submission via GitHub Action #1898

lukasc-ubc opened this issue Oct 17, 2024 · 2 comments
Labels

Comments

@lukasc-ubc
Copy link

Hi Matthias,

I have a GitHub Action that automatically publishes to PyPI: https://github.com/SiEPIC/SiEPIC_EBeam_PDK/blob/master/.github/workflows/python-publish.yml

I am wondering if it would be possible to automate the submission to your Salt server, via the https://sami.klayout.org/register page? The URL can be used to pre-fill the form, but is there a way to have the button get pushed automatically via curl or some other method?

I would imagine receiving the confirmation email, which would be simple to click on it to accept.

thank you

@klayoutmatthias
Copy link
Collaborator

klayoutmatthias commented Oct 18, 2024

Hi Lukas,

that should be possible. The request is a simple GET.

With user = "myself", mail = "[email protected]", provider = "Github" (==5), Project URL = "blabla" and "yes I agree to the terms" this URL is:

https://sami.klayout.org/register_request?user=myself&mail=xyz%40abc.de&provider=5&url_path=blabla&agree_terms=1

It's probably not wise to disclose this publicly, but these are details that you can easily trace for example with FireFox's network monitor.

I cannot guarantee stability of this API. For example, the provider codes are basically database IDs and may change.

Matthias

@lukasc-ubc
Copy link
Author

I got it working. Thank you very much. All I had to do is click on the approval email that your system sent.

For future reference, here is my action file: https://github.com/SiEPIC/SiEPIC_EBeam_PDK/blob/master/.github/workflows/python-publish.yml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants