Skip to content

Commit 5d364f7

Browse files
committed
update testing deploy trigger
Signed-off-by: Andre Bossert <anb0s@anbos.de>
1 parent 8bfba18 commit 5d364f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/maven.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ jobs:
4747
name: EasyShell-update-site-PR${{ github.event.pull_request.number }}
4848
path: site/target/repository
4949
- name: Commit and push changes
50-
if: contains(github.ref, 'refs/heads/testing')
50+
if: github.event_name == 'pull_request' && contains(github.head_ref, 'refs/heads/testing')
5151
uses: devops-infra/action-commit-push@v0.8.4
5252
with:
5353
github_token: ${{ secrets.GITHUB_TOKEN }}
5454
commit_message: New testing build
5555
- name: Deploy for Testing
56-
if: contains(github.ref, 'refs/heads/testing')
56+
if: github.event_name == 'pull_request' && contains(github.head_ref, 'refs/heads/testing')
5757
uses: JamesIves/github-pages-deploy-action@v4
5858
with:
5959
branch: gh-pages

0 commit comments

Comments
 (0)