Skip to content

Commit

Permalink
environment variable changed to a file
Browse files Browse the repository at this point in the history
  • Loading branch information
loki077 committed Oct 15, 2024
1 parent 9936b50 commit 959fd7f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/carbonix_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ jobs:
PATH_TO_S3="s3://carbonix-firmware-dev-files/Carbopilot_V2/PR/${DATE_HR}_${{ env.firmware_version }}_${{ env.commit_id }}_${{ github.event.pull_request.number }}/"
fi
echo "PATH_TO_S3=$PATH_TO_S3" >> $GITHUB_ENV
echo "PATH_TO_S3=$PATH_TO_S3" >> $GITHUB_WORKSPACE/s3_path.txt
build-sitl:
runs-on: 'windows-latest'
Expand Down Expand Up @@ -258,6 +259,7 @@ jobs:
aws-region: us-east-1
- name: Upload artifacts to S3
run: |
PATH_TO_S3=$(cat $GITHUB_WORKSPACE/s3_path.txt)
echo "Uploading to: $PATH_TO_S3"
aws s3 cp temp/ $PATH_TO_S3 --recursive
Expand Down Expand Up @@ -347,17 +349,14 @@ jobs:
aws-region: us-east-1

- name: Upload artifacts to S3
env:
PATH_TO_S3: ${{ env.PATH_TO_S3 }}
run: |
PATH_TO_S3=$(cat $GITHUB_WORKSPACE/s3_path.txt)
echo "Uploading ${matrix.config} to: $PATH_TO_S3"
aws s3 cp temp/ $PATH_TO_S3/${{ matrix.config }}/ --recursive
upload_other_files:
runs-on: ubuntu-latest
needs: setup-s3-path
env:
PATH_TO_S3: ${{ env.PATH_TO_S3 }}
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand Down Expand Up @@ -388,5 +387,6 @@ jobs:

- name: Upload to S3
run: |
PATH_TO_S3=$(cat $GITHUB_WORKSPACE/s3_path.txt)
echo "Uploading Release Notes and Payloads to: $PATH_TO_S3"
aws s3 cp temp/ $PATH_TO_S3 --recursive

0 comments on commit 959fd7f

Please sign in to comment.