try allow build from commit hash

This commit is contained in:
Concedo
2025-04-12 13:37:10 +08:00
parent 5908f2ca19
commit b42fa821d8
2 changed files with 13 additions and 126 deletions
@@ -1,6 +1,13 @@
name: Koboldcpp Windows Full Binaries CUDA 12
on: workflow_dispatch
on:
workflow_dispatch:
inputs:
commit_hash:
description: 'Optional commit hash to build from'
required: false
default: ''
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
@@ -12,7 +19,11 @@ jobs:
id: checkout
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref || github.ref_name }}
ref: ${{ inputs.commit_hash != '' && inputs.commit_hash || github.head_ref || github.ref_name }}
- name: Show Commit Used
run: |
echo "Building from ref: ${{ inputs.commit_hash != '' && inputs.commit_hash || github.head_ref || github.ref_name }}"
- name: Get Python
uses: actions/setup-python@v2