File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -47,13 +47,13 @@ jobs:
47
47
name : EasyShell-update-site-PR${{ github.event.pull_request.number }}
48
48
path : site/target/repository
49
49
- 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')
51
51
uses : devops-infra/action-commit-push@v0.8.4
52
52
with :
53
53
github_token : ${{ secrets.GITHUB_TOKEN }}
54
54
commit_message : New testing build
55
55
- 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')
57
57
uses : JamesIves/github-pages-deploy-action@v4
58
58
with :
59
59
branch : gh-pages
You can’t perform that action at this time.
0 commit comments