diff --git a/.github/workflows/haskell-actions.yml b/.github/workflows/haskell-actions.yml index 8819839..39719bf 100644 --- a/.github/workflows/haskell-actions.yml +++ b/.github/workflows/haskell-actions.yml @@ -31,15 +31,11 @@ jobs: - name: Extract New-Versions git trailer from Renovate if: ${{ github.event_name == 'pull_request' }} - env: - GITHUB_SHA: "{{ github.event.pull_request.head.sha }}" run: | if [ ! -f cabal.project ] then echo 'packages: .' > cabal.project fi - echo $GITHUB_SHA - git show $GITHUB_SHA - for constraint in $(git log "--format=%(trailers:key=New-Versions,valueonly=true)" ${GITHUB_SHA}^1..${GITHUB_SHA}^2) + for constraint in $(git log "--format=%(trailers:key=New-Versions,valueonly=true)" ${{ github.event.pull_request.head.sha }} -1 do echo "constraints: $constraint" >> cabal.project done cat cabal.project