Skip to content

Commit

Permalink
Fix branch name
Browse files Browse the repository at this point in the history
  • Loading branch information
neoformit committed Nov 10, 2024
1 parent 46e4bf8 commit 5e5eefb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: github.event.workflow_run.outputs.branch
ref: "${{ github.event.workflow_run.outputs.branch }}"
fetch-depth: 0 # Fetch the entire history to ensure 'HEAD^' is resolvable

- name: Debug github refs
Expand All @@ -34,7 +34,7 @@ jobs:
- name: Check if Dockerfile or requirements.txt was changed
id: check_dependencies
run: |
if git diff --name-only github.event.workflow_run.outputs.branch | grep -q -e 'Dockerfile' -e 'requirements.txt'; then
if git diff --name-only "${{ github.event.workflow_run.outputs.branch }}" | grep -q -e 'Dockerfile' -e 'requirements.txt'; then
echo "Dockerfile or requirements.txt changed"
echo "::set-output name=updated::true"
else
Expand Down

0 comments on commit 5e5eefb

Please sign in to comment.