Share env across GitHub Actions workflows

I have a GitHub Action (test-python.yml) intended to test a Django application. It utilizes the env tag like so towards the top of the file:

env:
  SECRET_KEY: test
  DEBUG: False
...

I want to make another workflow - not a job in the same workflow - that is reliant on the same variables. I could obviously just make another file for said workflow and copy the env however this seems slightly flaky, I'd rather somehow share the env variables across numerous workflows so I only have to keep it up to date in one place.

Is there a way to do this? Thank you in advance!

Back to Top