Skip to content

Commit

Permalink
Release branch settings (#314)
Browse files Browse the repository at this point in the history
* track changes to repo protection for release branches

* add required-status-check to build

* Update .github/workflows/build.yaml
  • Loading branch information
breedx-splk authored Apr 23, 2024
1 parent afd1f6b commit dc98e50
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/repository-settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 11 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,14 @@ jobs:
if: failure() && github.run_attempt == 1
uses: ./.github/workflows/reusable-workflow-notification.yml
with:
success: ${{ needs.build.result == 'success' }}
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

0 comments on commit dc98e50

Please sign in to comment.