diff --git a/sdks/csharp/.github/workflows/check-pr-base.yml b/sdks/csharp/.github/workflows/check-pr-base.yml index 73b71c27f0..e3c164863d 100644 --- a/sdks/csharp/.github/workflows/check-pr-base.yml +++ b/sdks/csharp/.github/workflows/check-pr-base.yml @@ -8,15 +8,15 @@ permissions: read-all jobs: check_base_ref: - name: Only release branches may merge into master + name: Release branch restriction runs-on: ubuntu-latest steps: - id: not_based_on_master if: | github.event_name == 'pull_request' && - github.event.pull_request.base.ref == 'master' && + github.event.pull_request.base.ref == 'release/latest' && ! startsWith(github.event.pull_request.head.ref, 'release/') run: | - echo 'Only `release/*` branches are allowed to merge into `master`.' - echo 'Maybe your PR should be merging into `staging`?' + echo 'Only `release/*` branches are allowed to merge into the release branch `release/latest`.' + echo 'Maybe you want to change your PR base to `master`?' exit 1