mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-12-11 11:24:28 +03:00
Fix GITHUB_OUTPUT in build workflows (#14276)
This commit is contained in:
parent
0673cb624c
commit
f3a709e5e8
12
.github/workflows/build-linux-installer-deb.yml
vendored
12
.github/workflows/build-linux-installer-deb.yml
vendored
@ -68,7 +68,7 @@ jobs:
|
||||
python3 -m venv ../venv
|
||||
. ../venv/bin/activate
|
||||
pip3 install setuptools_scm
|
||||
echo "CHIA_INSTALLER_VERSION=$(python3 ./build_scripts/installer-version.py)" >> $GITHUB_OUTPUT
|
||||
echo "CHIA_INSTALLER_VERSION=$(python3 ./build_scripts/installer-version.py)" >>$GITHUB_OUTPUT
|
||||
deactivate
|
||||
|
||||
- name: Test for secrets access
|
||||
@ -79,10 +79,10 @@ jobs:
|
||||
unset HAS_GLUE_SECRET
|
||||
|
||||
if [ -n "$AWS_SECRET" ]; then HAS_AWS_SECRET='true' ; fi
|
||||
echo HAS_AWS_SECRET=${HAS_AWS_SECRET} >> GITHUB_OUTPUT
|
||||
echo HAS_AWS_SECRET=${HAS_AWS_SECRET} >>$GITHUB_OUTPUT
|
||||
|
||||
if [ -n "$GLUE_ACCESS_TOKEN" ]; then HAS_GLUE_SECRET='true' ; fi
|
||||
echo HAS_GLUE_SECRET=${HAS_GLUE_SECRET} >> GITHUB_OUTPUT
|
||||
echo HAS_GLUE_SECRET=${HAS_GLUE_SECRET} >>$GITHUB_OUTPUT
|
||||
env:
|
||||
AWS_SECRET: "${{ secrets.INSTALLER_UPLOAD_KEY }}"
|
||||
GLUE_ACCESS_TOKEN: "${{ secrets.GLUE_ACCESS_TOKEN }}"
|
||||
@ -151,7 +151,7 @@ jobs:
|
||||
run: |
|
||||
gui_ref=$(git submodule status chia-blockchain-gui | sed -e 's/^ //g' -e 's/ chia-blockchain-gui.*$//g')
|
||||
echo "${gui_ref}"
|
||||
echo "GUI_REF=${gui_ref}" >> $GITHUB_OUTPUT
|
||||
echo "GUI_REF=${gui_ref}" >>$GITHUB_OUTPUT
|
||||
echo "rm -rf ./chia-blockchain-gui"
|
||||
rm -rf ./chia-blockchain-gui
|
||||
|
||||
@ -248,8 +248,8 @@ jobs:
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
id: tag-name
|
||||
run: |
|
||||
echo "TAG_NAME=$(echo ${{ github.ref }} | cut -d'/' -f 3)" >> $GITHUB_OUTPUT
|
||||
echo "REPO_NAME=$(echo ${{ github.repository }} | cut -d'/' -f 2)" >> $GITHUB_OUTPUT
|
||||
echo "TAG_NAME=$(echo ${{ github.ref }} | cut -d'/' -f 3)" >>$GITHUB_OUTPUT
|
||||
echo "REPO_NAME=$(echo ${{ github.repository }} | cut -d'/' -f 2)" >>$GITHUB_OUTPUT
|
||||
|
||||
- name: Upload release artifacts
|
||||
if: env.RELEASE == 'true'
|
||||
|
12
.github/workflows/build-linux-installer-rpm.yml
vendored
12
.github/workflows/build-linux-installer-rpm.yml
vendored
@ -67,7 +67,7 @@ jobs:
|
||||
python3 -m venv ../venv
|
||||
. ../venv/bin/activate
|
||||
pip3 install setuptools_scm
|
||||
echo "CHIA_INSTALLER_VERSION=$(python3 ./build_scripts/installer-version.py)" >> $GITHUB_OUTPUT
|
||||
echo "CHIA_INSTALLER_VERSION=$(python3 ./build_scripts/installer-version.py)" >>$GITHUB_OUTPUT
|
||||
deactivate
|
||||
|
||||
- name: Test for secrets access
|
||||
@ -78,10 +78,10 @@ jobs:
|
||||
unset HAS_GLUE_SECRET
|
||||
|
||||
if [ -n "$AWS_SECRET" ]; then HAS_AWS_SECRET='true' ; fi
|
||||
echo HAS_AWS_SECRET=${HAS_AWS_SECRET} >> GITHUB_OUTPUT
|
||||
echo HAS_AWS_SECRET=${HAS_AWS_SECRET} >>$GITHUB_OUTPUT
|
||||
|
||||
if [ -n "$GLUE_ACCESS_TOKEN" ]; then HAS_GLUE_SECRET='true' ; fi
|
||||
echo HAS_GLUE_SECRET=${HAS_GLUE_SECRET} >> GITHUB_OUTPUT
|
||||
echo HAS_GLUE_SECRET=${HAS_GLUE_SECRET} >>$GITHUB_OUTPUT
|
||||
env:
|
||||
AWS_SECRET: "${{ secrets.INSTALLER_UPLOAD_KEY }}"
|
||||
GLUE_ACCESS_TOKEN: "${{ secrets.GLUE_ACCESS_TOKEN }}"
|
||||
@ -150,7 +150,7 @@ jobs:
|
||||
run: |
|
||||
gui_ref=$(git submodule status chia-blockchain-gui | sed -e 's/^ //g' -e 's/ chia-blockchain-gui.*$//g')
|
||||
echo "${gui_ref}"
|
||||
echo "GUI_REF=${gui_ref}" >> $GITHUB_OUTPUT
|
||||
echo "GUI_REF=${gui_ref}" >>$GITHUB_OUTPUT
|
||||
echo "rm -rf ./chia-blockchain-gui"
|
||||
rm -rf ./chia-blockchain-gui
|
||||
|
||||
@ -248,8 +248,8 @@ jobs:
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
id: tag-name
|
||||
run: |
|
||||
echo "TAG_NAME=$(echo ${{ github.ref }} | cut -d'/' -f 3)" >> $GITHUB_OUTPUT
|
||||
echo "REPO_NAME=$(echo ${{ github.repository }} | cut -d'/' -f 2)" >> $GITHUB_OUTPUT
|
||||
echo "TAG_NAME=$(echo ${{ github.ref }} | cut -d'/' -f 3)" >>$GITHUB_OUTPUT
|
||||
echo "REPO_NAME=$(echo ${{ github.repository }} | cut -d'/' -f 2)" >>$GITHUB_OUTPUT
|
||||
|
||||
- name: Upload release artifacts
|
||||
if: env.RELEASE == 'true'
|
||||
|
6
.github/workflows/build-macos-installers.yml
vendored
6
.github/workflows/build-macos-installers.yml
vendored
@ -79,13 +79,13 @@ jobs:
|
||||
unset HAS_GLUE_SECRET
|
||||
|
||||
if [ -n "$APPLE_SECRET" ]; then HAS_APPLE_SECRET='true' ; fi
|
||||
echo HAS_APPLE_SECRET=${HAS_APPLE_SECRET} >> $GITHUB_OUTPUT
|
||||
echo HAS_APPLE_SECRET=${HAS_APPLE_SECRET} >>$GITHUB_OUTPUT
|
||||
|
||||
if [ -n "$AWS_SECRET" ]; then HAS_AWS_SECRET='true' ; fi
|
||||
echo HAS_AWS_SECRET=${HAS_AWS_SECRET} >> GITHUB_OUTPUT
|
||||
echo HAS_AWS_SECRET=${HAS_AWS_SECRET} >>$GITHUB_OUTPUT
|
||||
|
||||
if [ -n "$GLUE_ACCESS_TOKEN" ]; then HAS_GLUE_SECRET='true' ; fi
|
||||
echo HAS_GLUE_SECRET=${HAS_GLUE_SECRET} >> GITHUB_OUTPUT
|
||||
echo HAS_GLUE_SECRET=${HAS_GLUE_SECRET} >>$GITHUB_OUTPUT
|
||||
env:
|
||||
APPLE_SECRET: "${{ secrets.APPLE_DEV_ID_APP }}"
|
||||
AWS_SECRET: "${{ secrets.INSTALLER_UPLOAD_KEY }}"
|
||||
|
Loading…
Reference in New Issue
Block a user