Skip to content

Commit

Permalink
Avoid overwriting env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ysangkok committed Jan 22, 2025
1 parent b6a23de commit 6507ce5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/haskell-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6507ce5

Please sign in to comment.