Submodualarizatooor - moves a lot of code into submodules for MUCH easier mangement #2
Workflow file for this run
This file contains hidden or 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: PR Target Check | |
on: | |
pull_request: | |
types: [opened, edited] | |
jobs: | |
check-branch: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check if PR is targeting the 'develop' branch | |
run: | | |
if [ "${{ github.event.pull_request.base.ref }}" != "develop" ]; then | |
echo "::warning file=${{ github.event.pull_request.url }}::PR is not targeting 'develop'. Please change the target branch to 'develop'." | |
else | |
echo "PR is targeting the 'develop' branch. Everything is okay." | |
fi |