From 7393e5a8a33267d564366016035fe2901c6ab1d5 Mon Sep 17 00:00:00 2001 From: Chris Bono Date: Mon, 17 Mar 2025 00:25:20 -0500 Subject: [PATCH] [CI] Remove temp release-adhoc.yml --- .github/workflows/release-adhoc.yml | 67 ----------------------------- 1 file changed, 67 deletions(-) delete mode 100644 .github/workflows/release-adhoc.yml diff --git a/.github/workflows/release-adhoc.yml b/.github/workflows/release-adhoc.yml deleted file mode 100644 index 81e3c818..00000000 --- a/.github/workflows/release-adhoc.yml +++ /dev/null @@ -1,67 +0,0 @@ -name: CI (Temp AdHoc) - -on: - workflow_dispatch: - inputs: - run-trivy-scan: - description: 'Run Trivy scan ?' - default: true - required: false - type: boolean - -env: - GCHAT_WEBHOOK_URL: ${{ secrets.SPRING_RELEASE_GCHAT_WEBHOOK_URL }} - DEVELOCITY_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }} - COMMIT_OWNER: ${{ github.event.pusher.name }} - COMMIT_SHA: ${{ github.sha }} - ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }} - ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }} - GH_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }} - -jobs: - prerequisites: - name: Pre-requisites for building - runs-on: ubuntu-latest - if: github.repository == 'spring-projects/spring-pulsar' - outputs: - runjobs: ${{ steps.continue.outputs.runjobs }} - project_version: ${{ steps.continue.outputs.project_version }} - boot_version: ${{ steps.continue.outputs.boot_version }} - steps: - - uses: actions/checkout@v4 - - id: continue - name: Determine if should continue - run: | - # Run jobs if in upstream repository - echo "runjobs=true" >>$GITHUB_OUTPUT - # Extract version from gradle.properties - version=$(cat gradle.properties | grep "version=" | awk -F'=' '{print $2}') - echo "project_version=$version" >>$GITHUB_OUTPUT - bootVersion=$(cat gradle/libs.versions.toml | grep "spring-boot = \"" | cut -d '"' -f2) - echo "boot_version=$bootVersion" >>$GITHUB_OUTPUT - - perform_release: - name: Perform Release - needs: [prerequisites] - runs-on: ubuntu-latest - permissions: - contents: write - timeout-minutes: 120 - if: ${{ !endsWith(needs.prerequisites.outputs.project_version, '-SNAPSHOT') }} - env: - REPO: ${{ github.repository }} - BRANCH: ${{ github.ref_name }} - VERSION: ${{ needs.prerequisites.outputs.project_version }} - steps: - - uses: actions/checkout@v4 - with: - token: ${{ secrets.GH_ACTIONS_REPO_TOKEN }} - - uses: spring-io/spring-gradle-build-action@v2 - - name: Update next snapshot version - run: | - echo "Updating $REPO@$VERSION to next snapshot version." - ./gradlew :updateToSnapshotVersion - git config user.name 'github-actions[bot]' - git config user.email 'github-actions[bot]@users.noreply.github.com' - git commit -am "[Release $VERSION] Next development version" - git push