Skip to content

Commit

Permalink
[332] Added conditional checkout.
Browse files Browse the repository at this point in the history
  • Loading branch information
GROwen committed Nov 18, 2024
1 parent a7ada0a commit 93b6e1c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,16 @@ 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)
- 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') )
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 93b6e1c

Please sign in to comment.