This is an automated email from the ASF dual-hosted git repository.
rustyrazorblade pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cassandra-easy-stress.git
The following commit(s) were added to refs/heads/main by this push:
new 4294593 Fix multiple issues with GitHub Actions
4294593 is described below
commit 4294593decfa86f3f45dca77f60930ff8406f389
Author: Jon Haddad <[email protected]>
AuthorDate: Sat Aug 8 11:01:20 2026 -0400
Fix multiple issues with GitHub Actions
- Replaced gradle/actions/setup-gradle (not on ASF's Actions allowlist,
causing CI to fail with startup_failure before any job ran) with
actions/setup-java's built-in `cache: gradle` input, across ci.yml,
publish-release.yml, and gradle-publish-disttar.yml
- Replaced docker/login-action with a plain `docker login` shell step
in ci.yml's build job, for the same allowlist reason
- Bumped JDK 11 to 17 in both release workflows; the build now requires
17+ (nebula ospackage-plugin, shadow plugin), so they were failing
independently of the Actions allowlist issue
- Replaced gradle-publish-disttar.yml's pinned gradle/gradle-build-action
with a plain `./gradlew distTar` step
- Renamed gradle-publish-main-release.yml to publish-release.yml and
reworked it: it triggered on every push to main but used
`tag_name: ${{ github.ref }}`, which is invalid for a branch ref and
could never succeed. Switched to workflow_dispatch with a required
tag input, and replaced the deprecated actions/create-release +
actions/upload-release-asset (hardcoded to a stale version string)
with softprops/action-gh-release, already used successfully
elsewhere in this repo, globbing the release asset instead of
hardcoding the version
---
.github/workflows/ci.yml | 30 ++++------------
.github/workflows/gradle-publish-disttar.yml | 13 +++----
.github/workflows/gradle-publish-main-release.yml | 44 -----------------------
.github/workflows/publish-release.yml | 35 ++++++++++++++++++
4 files changed, 46 insertions(+), 76 deletions(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 116e47e..9a18b79 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -31,9 +31,7 @@ jobs:
with:
java-version: ${{ matrix.java }}
distribution: "temurin"
-
- - name: Setup Gradle
- uses: gradle/actions/setup-gradle@v5
+ cache: "gradle"
- name: Run tests (${{ matrix.test-task }})
run: ./gradlew ${{ matrix.test-task }}
@@ -51,9 +49,7 @@ jobs:
with:
java-version: 17
distribution: "temurin"
-
- - name: Setup Gradle
- uses: gradle/actions/setup-gradle@v5
+ cache: "gradle"
- name: Run ktlint
run: ./gradlew ktlintCheck
@@ -71,9 +67,7 @@ jobs:
with:
java-version: 17
distribution: "temurin"
-
- - name: Setup Gradle
- uses: gradle/actions/setup-gradle@v5
+ cache: "gradle"
- name: Run detekt
run: ./gradlew detekt
@@ -91,9 +85,7 @@ jobs:
with:
java-version: 17
distribution: "temurin"
-
- - name: Setup Gradle
- uses: gradle/actions/setup-gradle@v5
+ cache: "gradle"
- name: Run tests and generate coverage
run: ./gradlew test koverXmlReport -x test40 -x test41 -x test50
@@ -112,9 +104,7 @@ jobs:
with:
java-version: 17
distribution: "temurin"
-
- - name: Setup Gradle
- uses: gradle/actions/setup-gradle@v5
+ cache: "gradle"
- name: Verify distTar builds successfully
run: ./gradlew distTar
@@ -137,19 +127,13 @@ jobs:
with:
java-version: 17
distribution: "temurin"
-
- - name: Setup Gradle
- uses: gradle/actions/setup-gradle@v5
+ cache: "gradle"
- name: Build distribution tarball
run: ./gradlew distTar
- name: Log in to GitHub Container Registry
- uses: docker/login-action@v3
- with:
- registry: ghcr.io
- username: ${{ github.actor }}
- password: ${{ secrets.GITHUB_TOKEN }}
+ run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u "${{
github.actor }}" --password-stdin
- name: Build and push Docker image
run: ./gradlew jib
diff --git a/.github/workflows/gradle-publish-disttar.yml
b/.github/workflows/gradle-publish-disttar.yml
index 3f25627..0acb1e6 100644
--- a/.github/workflows/gradle-publish-disttar.yml
+++ b/.github/workflows/gradle-publish-disttar.yml
@@ -1,7 +1,3 @@
-# This workflow uses actions that are not certified by GitHub.
-# They are provided by a third-party and are governed by
-# separate terms of service, privacy policy, and support
-# documentation.
# This workflow will build a package using Gradle and then publish it to
GitHub packages when a release is created
# For more information see:
https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#Publishing-using-gradle
@@ -21,18 +17,17 @@ jobs:
steps:
- uses: actions/checkout@v6
- - name: Set up JDK 11
+ - name: Set up JDK 17
uses: actions/setup-java@v5
with:
- java-version: '11'
+ java-version: '17'
distribution: 'temurin'
+ cache: 'gradle'
server-id: github # Value of the distributionManagement/repository/id
field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml
file
- name: Build with Gradle
- uses:
gradle/gradle-build-action@ac2d340dc04d9e1113182899e983b5400c17cda1 # v3.5.0
- with:
- arguments: disttar
+ run: ./gradlew distTar
- name: Upload a Build Artifact
uses: actions/upload-artifact@v6
diff --git a/.github/workflows/gradle-publish-main-release.yml
b/.github/workflows/gradle-publish-main-release.yml
deleted file mode 100644
index 394f3dc..0000000
--- a/.github/workflows/gradle-publish-main-release.yml
+++ /dev/null
@@ -1,44 +0,0 @@
-name: Release Workflow
-
-on:
- push:
- branches:
- - main
-
-jobs:
- build-and-release:
- runs-on: ubuntu-latest
-
- steps:
- - name: Checkout code
- uses: actions/checkout@v6
-
- - name: Set up JDK 11
- uses: actions/setup-java@v5
- with:
- java-version: '11'
- distribution: 'temurin'
-
- - name: Build with Gradle
- run: ./gradlew distZip
-
- - name: Create Release
- id: create_release
- uses: actions/create-release@v1
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- with:
- tag_name: ${{ github.ref }}
- release_name: Release ${{ github.ref }}
- draft: false
- prerelease: false
-
- - name: Upload Release Artifact
- uses: actions/upload-release-asset@v1
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- with:
- upload_url: ${{ steps.create_release.outputs.upload_url }}
- asset_path: ./build/distributions/cassandra-easy-stress-6.0.0.zip
- asset_name: cassandra-easy-stress-6.0.0.zip
- asset_content_type: application/gzip
diff --git a/.github/workflows/publish-release.yml
b/.github/workflows/publish-release.yml
new file mode 100644
index 0000000..7386e37
--- /dev/null
+++ b/.github/workflows/publish-release.yml
@@ -0,0 +1,35 @@
+name: Release Workflow
+
+on:
+ workflow_dispatch:
+ inputs:
+ tag:
+ description: "Release tag (e.g. v10)"
+ required: true
+
+jobs:
+ build-and-release:
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v6
+
+ - name: Set up JDK 17
+ uses: actions/setup-java@v5
+ with:
+ java-version: '17'
+ distribution: 'temurin'
+ cache: 'gradle'
+
+ - name: Build with Gradle
+ run: ./gradlew distZip
+
+ - name: Create Release
+ uses: softprops/action-gh-release@v3
+ with:
+ tag_name: ${{ github.event.inputs.tag }}
+ name: Release ${{ github.event.inputs.tag }}
+ draft: false
+ prerelease: false
+ files: build/distributions/*.zip
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]