Update deneme.yaml #1
Workflow file for this run
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
--- | |
# This is a basic workflow to throw an error if a pull request targets the main and historic branches | |
name: No Pull Requests to Main and Historic Branches | |
# Triggers the workflow pull request events but only for certain branches | |
on: | |
pull_request: | |
branches: [master, main, develop-historic] | |
jobs: | |
No_Pull_Requests_to_Main: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Run a one-line script | |
run: | | |
echo Pull requests to the main and historic branches are not allowed in this repository. | |
exit 1 |