Skip to content

Commit

Permalink
Deploy workflow refactor playbook selection
Browse files Browse the repository at this point in the history
  • Loading branch information
neoformit committed Nov 9, 2024
1 parent 3e63294 commit 31de913
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/ansible-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ jobs:
- name: Run Ansible Playbook
run: |
if [ $GITHUB_REF == "refs/heads/dev" ]; then
# If PR reference base ref, else use current ref
REF="${{ github.event.workflow_run.base_ref || github.ref }}"
if [ $REF == *"dev" ]; then
PLAYBOOK=dev.yml
else
PLAYBOOK=prod.yml
Expand Down

0 comments on commit 31de913

Please sign in to comment.