export env

This commit is contained in:
踢低吸 2023-07-08 08:18:27 +00:00
parent 424e3595e7
commit b8ef80e70e
2 changed files with 2 additions and 6 deletions

View File

@ -17,15 +17,11 @@ jobs:
limit-access-to-actor: true
## limits ssh access and adds the ssh public keys of the listed GitHub users
limit-access-to-users: tasi788
env:
TW165: ${{ env.TW165 }}
- uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'pip' # caching pip dependencies
- env:
TW165: ${{ env.TW165 }}
run: echo "$TW165" && pip install -r AutoBuild/requirements.txt && python AutoBuild/tw_165.py
run: export tw165=${{ env.TW165 }} && pip install -r AutoBuild/requirements.txt && python AutoBuild/tw_165.py
- name: push
uses: github-actions-x/commit@v2.9
with:

View File

@ -10,7 +10,7 @@ logger = logging.getLogger(__name__)
def main():
url = os.getenv('env.TW165', None)
url = os.getenv('tw165', None)
if not url:
logger.critical('URL NOT SET')
return