Skip to content

Commit

Permalink
optional commit hash in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasgriffin committed Dec 21, 2024
1 parent d2c6f2d commit 8fa1a88
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build-mac-test.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
name: Build Test DMG

on:
workflow_dispatch:
inputs:
tags:
commitHash:
description: 'Enter the commit hash to build (leave empty for the latest commit)'
required: false
type: string
buildDMG:
description: 'Test Build DMG'
required: false
type: boolean
Expand All @@ -22,7 +25,8 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0 # Fetch all history for all branches and tags

# Checkout the provided commit hash or the latest commit from the default branch
ref: ${{ github.event.inputs.commitHash || 'refs/heads/main' }}


- name: Run build script
Expand Down
2 changes: 1 addition & 1 deletion tools/build-mac/make_osx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ $python3 -m pip uninstall -y pip


info "Faking timestamps..."
find . -exec touch -t '200101220000' {} + || true
find . -exec sudo touch -t '200101220000' {} + || true

VERSION=$(git describe --tags --dirty --always)

Expand Down

0 comments on commit 8fa1a88

Please sign in to comment.