Skip to content

Commit 4e4bf1f

Browse files

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

.github/workflows/haskell-actions.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,11 @@ jobs:
3131

3232
- name: Extract New-Versions git trailer from Renovate
3333
if: ${{ github.event_name == 'pull_request' }}
34-
env:
35-
GITHUB_SHA: "{{ github.event.pull_request.head.sha }}"
3634
run: |
3735
if [ ! -f cabal.project ]
3836
then echo 'packages: .' > cabal.project
3937
fi
40-
echo $GITHUB_SHA
41-
git show $GITHUB_SHA
42-
for constraint in $(git log "--format=%(trailers:key=New-Versions,valueonly=true)" ${GITHUB_SHA}^1..${GITHUB_SHA}^2)
38+
for constraint in $(git log "--format=%(trailers:key=New-Versions,valueonly=true)" ${{ github.event.pull_request.head.sha }} -1
4339
do echo "constraints: $constraint" >> cabal.project
4440
done
4541
cat cabal.project

0 commit comments

Comments
 (0)