From 3384c23a5621bede940c47a133b3ac80c9ea87bd Mon Sep 17 00:00:00 2001 From: Austin Shalit Date: Sat, 15 Aug 2020 16:46:41 -0400 Subject: [PATCH] [build] Specify --tags on fetch and add version sanity check (#2638) --- .github/workflows/ci.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9c87164ae3..6c5826d0ea 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,7 +26,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: Fetch all history and metadata - run: git fetch --prune --unshallow + run: git fetch --prune --unshallow --tags - name: Build with Gradle run: ./gradlew build -PbuildServer ${{ matrix.build-options }} - uses: actions/upload-artifact@v2 @@ -53,7 +53,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: Fetch all history and metadata - run: git fetch --prune --unshallow + run: git fetch --prune --unshallow --tags - uses: actions/setup-java@v1 with: java-version: 11 @@ -132,6 +132,10 @@ jobs: path: combiner/products/build/allOutputs - name: Flatten Artifacts run: rsync -a --delete combiner/products/build/allOutputs/*/* combiner/products/build/allOutputs/ + - name: Check version number exists + run: | + cat combiner/products/build/allOutputs/version.txt + test -s combiner/products/build/allOutputs/version.txt - uses: actions/setup-java@v1 with: java-version: 11