Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only use major version Github actions #92

Merged
merged 1 commit into from
Aug 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/generate-alpha-tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ jobs:
fetch-depth: 0

- name: Set up Java
uses: actions/setup-java@v3.12.0
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 11

- name: Gradle build
uses: gradle/gradle-build-action@v2.8.0
uses: gradle/gradle-build-action@v2
with:
arguments: --full-stacktrace build "-Psemver.stage=alpha"

Expand All @@ -54,7 +54,7 @@ jobs:
java-version: 11

- name: Generate Tag
uses: gradle/gradle-build-action@v2.8.0
uses: gradle/gradle-build-action@v2
with:
arguments: --full-stacktrace createSemverTag "-Psemver.stage=alpha"

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/generate-tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ jobs:
fetch-depth: 0

- name: Set up Java
uses: actions/setup-java@v3.12.0
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 11

- name: Gradle build
uses: gradle/gradle-build-action@v2.8.0
uses: gradle/gradle-build-action@v2
with:
arguments: --full-stacktrace build "-Psemver.scope=${{ github.event.inputs.scope }}" "-Psemver.stage=${{ github.event.inputs.stage }}"

Expand All @@ -72,7 +72,7 @@ jobs:
java-version: 11

- name: Generate Tag
uses: gradle/gradle-build-action@v2.8.0
uses: gradle/gradle-build-action@v2
with:
arguments: --full-stacktrace createSemverTag "-Psemver.scope=${{ github.event.inputs.scope }}" "-Psemver.stage=${{ github.event.inputs.stage }}"

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ jobs:
token: ${{ secrets.TOKEN_GITHUB_ACTION }}

- name: Set up Java
uses: actions/setup-java@v3.12.0
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 11

- name: Build
uses: gradle/gradle-build-action@v2.8.0
uses: gradle/gradle-build-action@v2
with:
arguments: build --full-stacktrace

Expand All @@ -45,13 +45,13 @@ jobs:
run: echo "::set-output name=arrow::$(head -n 1 build/semver/version.txt)"

- name: Upload reports
uses: actions/upload-artifact@v3.1.2
uses: actions/upload-artifact@v3
with:
name: 'reports-${{ matrix.os }}'
path: '**/build/reports/**'

- name: Publish alpha/beta/rc version
uses: gradle/gradle-build-action@v2.8.0
uses: gradle/gradle-build-action@v2
if: |
contains(steps.version.outputs.arrow, 'alpha') ||
contains(steps.version.outputs.arrow, 'beta') ||
Expand All @@ -60,7 +60,7 @@ jobs:
arguments: --full-stacktrace publishToSonatype closeAndReleaseSonatypeStagingRepository

- name: Publish final version
uses: gradle/gradle-build-action@v2.8.0
uses: gradle/gradle-build-action@v2
if: |
!contains(steps.version.outputs.arrow, 'alpha') &&
!contains(steps.version.outputs.arrow, 'beta') &&
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,23 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3.5.3
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Java
uses: actions/setup-java@v3.12.0
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 11

- name: build
uses: gradle/gradle-build-action@v2.8.0
uses: gradle/gradle-build-action@v2
with:
arguments: --full-stacktrace build

- name: Upload reports
uses: actions/upload-artifact@v3.1.2
uses: actions/upload-artifact@v3
with:
name: 'reports-${{ matrix.os }}'
path: '**/build/reports/**'
Expand All @@ -49,21 +49,21 @@ jobs:
fetch-depth: 0

- name: Set up Java
uses: actions/setup-java@v3.12.0
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 11

- name: Build
uses: gradle/gradle-build-action@v2.8.0
uses: gradle/gradle-build-action@v2
with:
arguments: apiDump

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

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