Skip to content

Commit

Permalink
feat(AR-208): main PR source branch checker (#26) (#28)
Browse files Browse the repository at this point in the history
* feat(AR-208): main PR source branch checker (#26)

* (fix): remove image build on PR (#29)
  • Loading branch information
mauromedda authored Apr 2, 2024
1 parent 6919094 commit e88419d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/docker-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ on:
- "develop"
tags:
- "v*"
pull_request:
branches:
- "main"

jobs:
push_to_registry:
name: Push Docker image to Docker Hub
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/main-pr-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Check main PR source branch
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
check-pr-source:
runs-on: ubuntu-latest
steps:
- name: Verify source branch
if: github.base_ref == 'main' && github.head_ref != 'develop'
run: |
echo "Error: Pull request source branch is not 'develop'."
exit 1

0 comments on commit e88419d

Please sign in to comment.