From b8ef80e70e5cf824b53358500ae269ce09f3d3b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B8=A2=E4=BD=8E=E5=90=B8?= Date: Sat, 8 Jul 2023 08:18:27 +0000 Subject: [PATCH] export env --- .github/workflows/tw165.yml | 6 +----- AutoBuild/tw_165.py | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tw165.yml b/.github/workflows/tw165.yml index d7e8ff6..e88caf9 100644 --- a/.github/workflows/tw165.yml +++ b/.github/workflows/tw165.yml @@ -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: diff --git a/AutoBuild/tw_165.py b/AutoBuild/tw_165.py index b0d2299..e4b38b4 100644 --- a/AutoBuild/tw_165.py +++ b/AutoBuild/tw_165.py @@ -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