Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[332] Added conditional checkout. #336

Merged
merged 2 commits into from
Nov 20, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
[332] Updated conditional.
GROwen committed Nov 18, 2024
commit 0ec2dda546f3d978b1a04bce6ab92849687e0e54
7 changes: 3 additions & 4 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
@@ -36,12 +36,11 @@ jobs:
- uses: actions/checkout@v3
if: |-
github.event.pull_request.merged == true ||
contains(fromJson('["schedule", "workflow_dispatch"]'), github.event_name)
contains(fromJson('["schedule", "workflow_dispatch"]'), github.event_name) ||
github.event_name == 'pull_request' && startsWith(github.head_ref,'build/')

- uses: actions/checkout@v3
if: |-
github.event_name == 'pull_request' && startsWith(github.head_ref,'build/') ||
( github.event.issue.pull_request && contains(github.event.comment.body, '/build') )
if: ( github.event.issue.pull_request && contains(github.event.comment.body, '/build') )
with:
ref: refs/pull/${{ github.event.issue.number }}/head