Skip to content

Commit 1f7ae11

Browse files
authored
set github.head_ref as env (#493)
Small change to CI.
1 parent 6230e88 commit 1f7ae11

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ env:
1212
BUILDER_HOST: https://d19elf31gohf1l.cloudfront.net
1313
PACKAGE_NAME: aws-iot-device-sdk-cpp-v2
1414
LINUX_BASE_IMAGE: ubuntu-18-x64
15+
HEAD_REF: ${{ github.head_ref }}
1516
RUN: ${{ github.run_id }}-${{ github.run_number }}
1617
AWS_DEFAULT_REGION: us-east-1
1718
DA_TOPIC: test/da
@@ -84,7 +85,7 @@ jobs:
8485
run: |
8586
aws s3 cp s3://aws-crt-test-stuff/ci/${{ env.BUILDER_VERSION }}/linux-container-ci.sh ./linux-container-ci.sh && chmod a+x ./linux-container-ci.sh
8687
./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ matrix.image }} build -p ${{ env.PACKAGE_NAME }}
87-
88+
8889
8990
linux-compiler-compat:
9091
runs-on: ubuntu-latest
@@ -379,7 +380,7 @@ jobs:
379380
- name: Build ${{ env.PACKAGE_NAME }} + consumers
380381
run: |
381382
echo "Downloading source"
382-
git clone --recursive https://github.com/aws/aws-iot-device-sdk-cpp-v2.git --branch ${{ github.head_ref || github.ref_name }}
383+
git clone --recursive https://github.com/aws/aws-iot-device-sdk-cpp-v2.git --branch ${{ env.HEAD_REF || github.ref_name }}
383384
echo "Running builder"
384385
python -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')"
385386
python builder.pyz build -p ${{ env.PACKAGE_NAME }}

0 commit comments

Comments
 (0)