Skip to content

Commit

Permalink
fix: moving gitsha check to secondary step
Browse files Browse the repository at this point in the history
  • Loading branch information
voodooGQ committed Feb 12, 2024
1 parent f30474a commit b293953
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/release-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,6 @@ jobs:
- name: Set Bot Name
run: git config user.name "Kajabi Automation Bot"

- name: Determine git sha to checkout
uses: haya14busa/action-cond@v1
id: gitsha
with:
cond: ${{ github.event_name == 'pull_request' }}
if_true: ${{ github.event.pull_request.head.sha }}
if_false: ${{ github.sha }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
with:
Expand All @@ -72,6 +64,14 @@ jobs:
needs: [setup]
runs-on: ubuntu-latest
steps:
- name: Determine git sha to checkout
uses: haya14busa/action-cond@v1
id: gitsha
with:
cond: ${{ github.event_name == 'pull_request' }}
if_true: ${{ github.event.pull_request.head.sha }}
if_false: ${{ github.sha }}

# Envs based on the current branch
- name: Branch Env
id: branch_env
Expand Down

0 comments on commit b293953

Please sign in to comment.