diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 12e9342..01d825a 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -8,17 +8,10 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v7 - with: - fetch-depth: 0 + - uses: rundeck-plugins/.github/.github/actions/setup-java@main - name: Get Fetch Tags run: git -c protocol.version=2 fetch --tags --progress --no-recurse-submodules origin if: "!contains(github.ref, 'refs/tags')" - - name: Set up JDK 17 - uses: actions/setup-java@v6 - with: - java-version: '17' - distribution: 'zulu' - name: Grant execute permission for gradlew run: chmod +x gradlew - name: Build with Gradle @@ -27,7 +20,7 @@ jobs: id: get_version run: VERSION=$(./gradlew currentVersion -q -Prelease.quiet) && echo "VERSION=$VERSION" >> $GITHUB_OUTPUT - name: Upload plugin jar - uses: actions/upload-artifact@v7 + uses: rundeck-plugins/.github/.github/actions/upload-artifact@main with: # Artifact name name: Grails-Plugin-${{ steps.get_version.outputs.VERSION }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ad06698..8bebdc3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,15 +12,7 @@ jobs: env: PKGCLD_REPO_URL: ${{ vars.PKGCLD_REPO_URL }} steps: - - name: Checkout code - uses: actions/checkout@v7 - with: - fetch-depth: 0 - - name: Set up JDK 17 - uses: actions/setup-java@v6 - with: - java-version: '17' - distribution: 'zulu' + - uses: rundeck-plugins/.github/.github/actions/setup-java@main - name: Build with Gradle run: ./gradlew build - name: Get Release Version