Skip to content

Commit

Permalink
[332] Added conditional checkout. (#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
GROwen authored Nov 20, 2024
1 parent da0b23b commit c535cb3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@ jobs:
uses: docker/setup-buildx-action@v3

- uses: actions/checkout@v3
if: |-
github.event.pull_request.merged == true ||
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.issue.pull_request && contains(github.event.comment.body, '/build') )
with:
ref: refs/pull/${{ github.event.issue.number }}/head

- name: Login to registry ${{ env.REGISTRY }}
uses: docker/[email protected]
Expand Down

0 comments on commit c535cb3

Please sign in to comment.