Skip to content

Commit

Permalink
Fix build workflow syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
neoformit committed Nov 10, 2024
1 parent c241499 commit 916b55f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/django-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,8 @@ jobs:

steps:
- uses: actions/checkout@v3

- name: Debug github refs
run: |
echo "github.head_ref = ${{ github.head_ref }}"
echo "github.event.workflow_run.head_branch = ${{ github.event.workflow_run.head_branch }}"
echo "github.event.workflow_run.base_ref = ${{ github.event.workflow_run.base_ref }}"
with:
ref: ${{ github.ref }}

- name: Check if event is a push to PR branch
id: check_event
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: github.event.workflow_run.outputs.branch
fetch-depth: 0 # Fetch the entire history to ensure 'HEAD^' is resolvable
with:
ref: github.event.workflow_run.outputs.branch
fetch-depth: 0 # Fetch the entire history to ensure 'HEAD^' is resolvable

- name: Debug github refs
run: |
Expand Down

0 comments on commit 916b55f

Please sign in to comment.