You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iceberg.apache.org by bl...@apache.org on 2022/06/08 23:49:20 UTC
[iceberg] branch master updated: Build: Fix API compatibility Github Action (#4989)
This is an automated email from the ASF dual-hosted git repository.
blue pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iceberg.git
The following commit(s) were added to refs/heads/master by this push:
new 2244ade22 Build: Fix API compatibility Github Action (#4989)
2244ade22 is described below
commit 2244ade22291dff63dd76a4e90f6a001cf76a38a
Author: Kyle Bendickson <kj...@gmail.com>
AuthorDate: Wed Jun 8 16:49:14 2022 -0700
Build: Fix API compatibility Github Action (#4989)
---
.github/workflows/api-binary-compatibility.yml | 20 ++++++++++++--------
1 file changed, 12 insertions(+), 8 deletions(-)
diff --git a/.github/workflows/api-binary-compatibility.yml b/.github/workflows/api-binary-compatibility.yml
index bf89abdfa..40d6459f3 100644
--- a/.github/workflows/api-binary-compatibility.yml
+++ b/.github/workflows/api-binary-compatibility.yml
@@ -35,18 +35,22 @@ concurrency:
jobs:
revapi:
- runs-on: ubuntu-latest
+ runs-on: ubuntu-20.04
steps:
- - uses: actions/checkout@v2
+ - uses: actions/checkout@v3
+ with:
+ # fetch-depth of zero ensures that the tags are pulled in and we're not in a detached HEAD state
+ # revapi depends on the tags, specifically the tag from git describe, to find the relevant override
+ # in the .palantir/revapi.yml file
+ #
+ # See https://github.com/actions/checkout/issues/124
+ fetch-depth: 0
- uses: actions/setup-java@v1
with:
java-version: 11
- - uses: actions/cache@v2
- with:
- path: ~/.gradle/caches
- key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
- restore-keys: ${{ runner.os }}-gradle
- - run: ./gradlew :iceberg-api:revapi
+ - run: |
+ echo "Using the old version tag, as per git describe, of $(git describe)";
+ - run: ./gradlew :iceberg-api:revapi --rerun-tasks
- uses: actions/upload-artifact@v2
if: failure()
with: