Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

docs: Update README.md with deprecation message #968

docs: Update README.md with deprecation message

docs: Update README.md with deprecation message #968

#
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
#
name: Mainline Protection
on:
pull_request:
types: [opened, synchronize, edited, reopened]
# The purpose of this workflow is to create a failing Status check on pull request against mainline. This will prevent
# PR from being merged into mainline.
jobs:
mainline-protection:
name: Only create PR against develop branches, not mainline branches
runs-on: ubuntu-latest
steps:
- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v5.1
- name: mainline protection
if: steps.branch-name.outputs.base_ref_branch == 'mainline' || steps.branch-name.outputs.base_ref_branch == 'smart-mainline'
run: |
echo "PR has target branch ${{ steps.branch-name.outputs.base_ref_branch }}. Failing workflow..."
exit 1