Skip to content

Commit

Permalink
Log the output of git
Browse files Browse the repository at this point in the history
  • Loading branch information
vallode committed May 26, 2024
1 parent d1d0dd9 commit 55a3cb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ jobs:
with:
ref: ${{ github.ref }}
submodules: recursive
fetch-depth: 0

- name: Checkout DFHack ref
id: checkout-ref
run: |
git checkout $(git log --pretty='format:%H %d' | grep -E '${{ matrix.ref }}' | head -n 1 | cut -c -10)
git log --format='short'
git checkout $(git log --pretty='format:%H %d' | grep -E '${{ matrix.ref }}' | head -n 1 | awk '{print $1}')
echo "name=$(git describe --tags --exact-match 2>/dev/null || echo 'develop')" > $GITHUB_OUTPUT
working-directory: dfhack

Expand Down

0 comments on commit 55a3cb5

Please sign in to comment.