chore: upgrade leather pkgs #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Warn on Release Branch | |
on: | |
pull_request: | |
types: [opened] | |
jobs: | |
warn-on-release-branch: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check if branch name starts with "release" | |
id: check_branch | |
run: | | |
if [[ "${{ github.head_ref }}" == release* ]]; then | |
echo "branch_is_release=true" >> $GITHUB_ENV | |
else | |
echo "branch_is_release=false" >> $GITHUB_ENV | |
fi | |
- name: Post warning comment | |
if: env.branch_is_release == 'true' | |
uses: actions/github-script@v6 | |
with: | |
script: | | |
github.rest.issues.createComment({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
issue_number: context.payload.pull_request.number, | |
body: "⚠️ Warning: PR should be **merged** and not **rebased**." | |
}) |