Skip to content

Commit

Permalink
Add check for PRs from "main"
Browse files Browse the repository at this point in the history
  • Loading branch information
koppor committed Apr 26, 2024
1 parent 47dbcdb commit ec33a7c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -335,3 +335,12 @@ jobs:
show-progress: 'false'
- name: Merge Conflict finder
uses: olivernybroe/[email protected]
other_than_main:
name: Check source branch is other than "main"
runs-on: ubuntu-latest
steps:
- if: github.head_ref == 'main'
uses: actions/github-script@v6
with:
script: |
core.setFailed('Changes to staging should merge from staging')

0 comments on commit ec33a7c

Please sign in to comment.