From 003a7c6726bb7bcd37aa451ad4af054fe3766479 Mon Sep 17 00:00:00 2001 From: Robert Stupp Date: Thu, 15 Sep 2022 08:54:19 -0700 Subject: [PATCH] Remove commit-status-checks for releases (#5196) --- .github/workflows/release-create.yml | 9 --------- .github/workflows/snapshot-publish.yml | 9 --------- 2 files changed, 18 deletions(-) diff --git a/.github/workflows/release-create.yml b/.github/workflows/release-create.yml index 22ac9a80ecd..9fede30619b 100644 --- a/.github/workflows/release-create.yml +++ b/.github/workflows/release-create.yml @@ -72,15 +72,6 @@ jobs: with: ref: ${{ env.RELEASE_FROM }} - # Check that the commit that is becoming a release has passed CI. - # Note: intentionally hard-coded projectnessie/nessie, so this check even works when *testing* - # the workflow on a PR-branch. - - name: Check commit status - run: | - GIT_HEAD_SHA="$(git rev-parse HEAD)" - echo ${{ secrets.GITHUB_TOKEN }} | gh auth login --with-token - gh api repos/projectnessie/nessie/commits/${GIT_HEAD_SHA}/check-runs --jq 'if ([.check_runs[] | select(.name | endswith(" release") or startswith("Publish ") or startswith("Dependabot ") or startswith("codecov/") or startswith("Report ") | not ) | select(.conclusion != "skipped") | .conclusion // "pending" ] | unique == ["success"]) then "OK" else error("Commit checks are not OK") end' - ### BEGIN runner setup - name: Setup Java, Maven uses: ./.github/actions/dev-tool-java diff --git a/.github/workflows/snapshot-publish.yml b/.github/workflows/snapshot-publish.yml index 9cabf3e992f..08769bd78ff 100644 --- a/.github/workflows/snapshot-publish.yml +++ b/.github/workflows/snapshot-publish.yml @@ -25,15 +25,6 @@ jobs: - name: Setup Java, Maven uses: ./.github/actions/dev-tool-java - # Check that the commit that is becoming a release has passed CI. - # Note: intentionally hard-coded projectnessie/nessie, so this check even works when *testing* - # the workflow on a PR-branch. - - name: Check commit status - run: | - GIT_HEAD_SHA="$(git rev-parse HEAD)" - echo ${{ secrets.GITHUB_TOKEN }} | gh auth login --with-token - gh api repos/projectnessie/nessie/commits/${GIT_HEAD_SHA}/check-runs --jq 'if ([.check_runs[] | select(.name | endswith(" release") or startswith("Publish ") or startswith("Dependabot ") or startswith("codecov/") or startswith("Report ") | not ) | select(.conclusion != "skipped") | .conclusion // "pending" ] | unique == ["success"]) then "OK" else error("Commit checks are not OK") end' - - name: Gradle / publish snapshot env: ORG_GRADLE_PROJECT_signingKey: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}