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

Add CI for command pick and test #123

Open
clearloop opened this issue Jun 24, 2023 · 2 comments
Open

Add CI for command pick and test #123

clearloop opened this issue Jun 24, 2023 · 2 comments
Assignees

Comments

@clearloop
Copy link
Owner

clearloop commented Jun 24, 2023

hmmm, need to set the csrf token and session key to the env of CI

This may require loading csrf and session from env

@clearloop clearloop self-assigned this Jun 24, 2023
@clearloop clearloop changed the title Add CI for pick and test Add CI for <kbd>pick</kbd> and <kbd>test</kbd> Jun 24, 2023
@clearloop clearloop changed the title Add CI for <kbd>pick</kbd> and <kbd>test</kbd> Add CI for command pick and test Jun 24, 2023
@anstadnik
Copy link
Contributor

You can set GH Actions secrets, then write those into a config file, and read them. I assume they won't be obtainable from outside. The problem is that they could expire.

@clearloop
Copy link
Owner Author

clearloop commented Jun 25, 2023

yeah, it is possible to replace the new generated csrf and session key with bash script as well!

./target/release/leetcode list # just trigger the config generation logic
sed -i /csrf=\"\"/csrf=\"...\"/ ~/.leetcode/leetcode.toml 
sed -i /session=\"\"/session=\"...\"/ ~/.leetcode/leetcode.toml 
cp anwser.1-sum-two.rs > ~/.leetcode/code
leetcode t 1

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

No branches or pull requests

2 participants