Skip to content

Commit

Permalink
Job to update the API files (#2605)
Browse files Browse the repository at this point in the history
  • Loading branch information
serras committed Dec 23, 2021
1 parent 1f34830 commit e2eb572
Showing 1 changed file with 40 additions and 3 deletions.
43 changes: 40 additions & 3 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ jobs:
echo "$JAVA_HOME_8_X64/bin" >> $GITHUB_PATH
echo "JAVA_HOME=$JAVA_HOME_8_X64" >> $GITHUB_ENV
- name: "ApiCheck"
run: ./gradlew apiCheck

# - name: "Run code formatter"
# run: ./gradlew spotlessCheck

Expand Down Expand Up @@ -164,3 +161,43 @@ jobs:

- name: Stop Gradle daemons
run: ./gradlew --stop

update_api:
runs-on: ubuntu-latest
timeout-minutes: 60

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Restore Gradle cache
id: cache
uses: actions/cache@v2.1.6
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
~/.gradle/yarn
~/.gradle/nodejs
~/.konan
key: misc-step-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
misc-step-gradle-
- name: "Set env"
run: |
echo "$JAVA_HOME_8_X64/bin" >> $GITHUB_PATH
echo "JAVA_HOME=$JAVA_HOME_8_X64" >> $GITHUB_ENV
- name: "Dump new API files"
run: ./gradlew apiDump

- name: Stop Gradle daemons
run: ./gradlew --stop

- name: "Commit new API files"
uses: stefanzweifel/git-auto-commit-action@v4.12.0
with:
commit_message: Update API files
file_pattern: arrow-libs/**/api/*.api

0 comments on commit e2eb572

Please sign in to comment.