Skip to content

Commit

Permalink
Remove commit-status-checks for releases (#5196)
Browse files Browse the repository at this point in the history
  • Loading branch information
snazy authored Sep 15, 2022
1 parent 6e3d7d9 commit 003a7c6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
9 changes: 0 additions & 9 deletions .github/workflows/release-create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 0 additions & 9 deletions .github/workflows/snapshot-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 003a7c6

Please sign in to comment.