From e7896215bebc8f733c2d2b44378ac16c4cc43866 Mon Sep 17 00:00:00 2001 From: Junwoo Hwang Date: Thu, 16 Nov 2023 18:48:46 +0900 Subject: [PATCH] Echo git branch and also content of GITHUB_ENV file --- .github/workflows/deploy_all.yml | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/.github/workflows/deploy_all.yml b/.github/workflows/deploy_all.yml index 8127128bbc..fa8c0770f4 100644 --- a/.github/workflows/deploy_all.yml +++ b/.github/workflows/deploy_all.yml @@ -25,19 +25,24 @@ jobs: - name: parameter & events metadata run: | make px4_fmu-v5_default ver_gen + echo "Git branch:" + echo $(git branch) + echo "Version tag detected: " echo $(./src/lib/version/get_git_tag_or_branch_version.sh build/px4_fmu-v5_default) ./src/lib/version/get_git_tag_or_branch_version.sh build/px4_fmu-v5_default >> $GITHUB_ENV - cd build/px4_fmu-v5_default - - mkdir _metadata || true - - cp parameters.* events/*.xz actuators.json* _metadata echo "Github ENV:" - echo $GITHUB_ENV - echo ${{env}} + echo $(cat $GITHUB_ENV) + echo $env.version + + - name: Check environment variables + run: | + echo "Version:" + echo $version + echo "Envs:" + echo $(env) - uses: jakejarvis/s3-sync-action@master with: @@ -49,7 +54,3 @@ jobs: AWS_REGION: 'us-west-1' SOURCE_DIR: 'build/px4_fmu-v5_default/_metadata/' DEST_DIR: 'Firmware/${{ env.version }}/px4_fmu-v5_default/' - - - name: Check environment variables - run: echo $GITHUB_ENV && echo "\n\n" && echo "${{env}}" && echo "\n\n" && env -