Skip to content

Commit 5cdb3a2

Browse files
committed
fix: use github.ref_name as fallback for action version
1 parent 3f2df60 commit 5cdb3a2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ runs:
2424
WORKSPACE: ${{ github.workspace }}
2525
ACTION_PATH: ${{ github.action_path }}
2626
SEND_PING: ${{ inputs.send-ping }}
27-
ACTION_REF: ${{ github.action_ref }}
27+
ACTION_REF: ${{ github.action_ref || github.ref_name }}
2828
run: |
29-
echo "==> FreeCAD Gallery Builder ${ACTION_REF:-unknown}"
29+
echo "==> FreeCAD Gallery Builder ${ACTION_REF}"
3030
${{ github.action_path }}/scripts/build.sh build
3131
MODEL_COUNT=$(find gallery/view -name '*.html' 2>/dev/null | wc -l)
3232
echo "models-count=$MODEL_COUNT" >> "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)