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

Use major versions in GitHub Actions #2849

Merged
merged 1 commit into from
Nov 17, 2022
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
8 changes: 4 additions & 4 deletions .github/workflows/generate-alpha-tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ jobs:
fetch-depth: 0

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

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

Expand All @@ -46,13 +46,13 @@ jobs:
token: ${{ secrets.TOKEN_GITHUB_ACTION }}

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

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

Expand Down
8 changes: 4 additions & 4 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.4.0
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 11

- name: Gradle build
uses: gradle/gradle-build-action@v2.2.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 @@ -66,13 +66,13 @@ jobs:
token: ${{ secrets.TOKEN_GITHUB_ACTION }}

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

- name: Generate Tag
uses: gradle/gradle-build-action@v2.2.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
12 changes: 6 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ jobs:
fetch-depth: 0

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

- name: Build
uses: gradle/gradle-build-action@v2.2.0
uses: gradle/gradle-build-action@v2
with:
arguments: assemble -Pkotlin.mpp.enableCompatibilityMetadataVariant=true --full-stacktrace

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

- name: Upload reports
uses: actions/upload-artifact@v3.1.0
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.2.0
uses: gradle/gradle-build-action@v2
if: |
contains(steps.version.outputs.arrow, 'alpha') ||
contains(steps.version.outputs.arrow, 'beta') ||
Expand All @@ -68,7 +68,7 @@ jobs:
arguments: --full-stacktrace -Pkotlin.mpp.enableCompatibilityMetadataVariant=true publishToSonatype closeAndReleaseSonatypeStagingRepository

- name: Publish final version
uses: gradle/gradle-build-action@v2.2.0
uses: gradle/gradle-build-action@v2
if: |
!contains(steps.version.outputs.arrow, 'alpha') &&
!contains(steps.version.outputs.arrow, 'beta') &&
Expand All @@ -85,7 +85,7 @@ jobs:
bundle install --gemfile Gemfile

- name: Create API doc
uses: gradle/gradle-build-action@v2.2.0
uses: gradle/gradle-build-action@v2
with:
arguments: --full-stacktrace -Pkotlin.mpp.enableCompatibilityMetadataVariant=true dokkaGfm

Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ jobs:

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

- name: Set up Java
uses: actions/setup-java@v3.4.0
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 11
Expand All @@ -32,19 +32,19 @@ jobs:
xcode-version: '13.4.1'

- name: build
uses: gradle/gradle-build-action@v2.2.0
uses: gradle/gradle-build-action@v2
if: matrix.os != 'windows-latest'
with:
arguments: --full-stacktrace build

- name: mingwX64Test
uses: gradle/gradle-build-action@v2.2.0
uses: gradle/gradle-build-action@v2
if: matrix.os == 'windows-latest'
with:
arguments: --full-stacktrace mingwX64Test

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

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

- name: Build
uses: gradle/gradle-build-action@v2.2.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.14.1
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Update API files
file_pattern: arrow-libs/**/api/*.api