diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bbc7835..679a99c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,8 +23,7 @@ jobs: run: | pip install pyyaml python scripts/build.py - echo "COMMUNITY_EXTENSION_GITHUB=$COMMUNITY_EXTENSION_GITHUB" >> $GITHUB_ENV - echo "COMMUNITY_EXTENSION_REF=$COMMUNITY_EXTENSION_REF" >> $GITHUB_ENV + cat env.sh >> $GITHUB_ENV - name: printf env: diff --git a/scripts/build.py b/scripts/build.py index 7ec9ee9..0d493f8 100644 --- a/scripts/build.py +++ b/scripts/build.py @@ -15,7 +15,7 @@ # todo check other stuff like build system etc. - -os.environ['COMMUNITY_EXTENSION_GITHUB'] = desc['repo']['github'] -os.environ['COMMUNITY_EXTENSION_REF'] = desc['repo']['ref'] -os.environ['COMMUNITY_EXTENSION_NAME'] = desc['extension']['name'] \ No newline at end of file +with open('env.sh', 'w+') as hdl: + hdl.write(f"COMMUNITY_EXTENSION_GITHUB={desc['repo']['github']}\n") + hdl.write(f"COMMUNITY_EXTENSION_REF={desc['repo']['ref']}\n") + hdl.write(f"COMMUNITY_EXTENSION_NAME={desc['extension']['name']}\n")