From dc98e50836fc05a7aa9fb5bcfb9f9cfc497d81e1 Mon Sep 17 00:00:00 2001 From: jason plumb <75337021+breedx-splk@users.noreply.github.com> Date: Tue, 23 Apr 2024 12:08:15 -0700 Subject: [PATCH] Release branch settings (#314) * track changes to repo protection for release branches * add required-status-check to build * Update .github/workflows/build.yaml --- .github/repository-settings.md | 7 +++++++ .github/workflows/build.yaml | 12 +++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/repository-settings.md b/.github/repository-settings.md index 448027e81..ab3f8210f 100644 --- a/.github/repository-settings.md +++ b/.github/repository-settings.md @@ -11,7 +11,14 @@ settings](https://github.com/open-telemetry/community/blob/main/docs/how-to-conf - Require branches to be up to date before merging: UNCHECKED (PR jobs take too long, and leaving this unchecked has not been a significant problem) +### `release/*` +Same settings as above for `main`, except: + +* Restrict pushes that create matching branches: UNCHECKED + + (So that opentelemetrybot can create release branches) + ## Secrets and variables > Actions * `GPG_PASSWORD` - stored in OpenTelemetry-Java 1Password diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 191522d77..953e99607 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -39,4 +39,14 @@ jobs: if: failure() && github.run_attempt == 1 uses: ./.github/workflows/reusable-workflow-notification.yml with: - success: ${{ needs.build.result == 'success' }} \ No newline at end of file + success: ${{ needs.build.result == 'success' }} + + required-status-check: + needs: + - build + runs-on: ubuntu-latest + if: always() + steps: + - if: | + needs.build.result != 'success' + run: exit 1