urlwatch
urlwatch copied to clipboard
How to use environment variables in URLs?
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?
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