diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index da6dc18..7b5eac0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,7 +39,7 @@ jobs: uses: therussiankid92/gat@v1 with: assertion: should.equal - expected: v1 + expected: 1.8.38 actual: ${{ steps.previoustag.outputs.tag }} get-previous-tag: name: Test Get Previous Tag on ${{ matrix.os }} diff --git a/main.js b/main.js index 2a2913a..f73661a 100644 --- a/main.js +++ b/main.js @@ -3,6 +3,8 @@ const fs = require('fs'); const tagPrefix = `${process.env.INPUT_PREFIX || ''}*`; const workingDirectory = process.env.INPUT_WORKINGDIRECTORY || null; +console.log('\x1b[33m%s\x1b[0m', 'Working directory: ' + workingDirectory); + exec(`git for-each-ref --sort=-creatordate --count 1 --format="%(refname:short)" "refs/tags/${tagPrefix}"`, {cwd: workingDirectory}, (err, tag, stderr) => { tag = tag.trim();