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

How to use environment variables in URLs? #701

Open
throwaway29345 opened this issue Apr 11, 2022 · 1 comment
Open

How to use environment variables in URLs? #701

throwaway29345 opened this issue Apr 11, 2022 · 1 comment

Comments

@throwaway29345
Copy link

I have a question on using environment variables in side a job.

name: "my job"
url: https://mysite.org?api_key=${env variable}
filter:
  - some filter...

Is this possible today?

@thp
Copy link
Owner

thp commented Apr 11, 2022

Not directly, but you can probably use a shell job using e.g. curl to work around it for now:

name: "my job"
command: curl http://google.com/?q=$SOMETHING
filter:
 - ...

Then run urlwatch using e.g.:

SOMETHING=asdf ./urlwatch

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