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 f108e40
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/haskell-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ jobs:
- name: Extract New-Versions git trailer from Renovate
if: ${{ github.event_name == 'pull_request' }}
env:
GITHUB_SHA: "{{ github.event.pull_request.head.sha }}"
HEAD_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)
echo $HEAD_SHA
git show $HEAD_SHA
for constraint in $(git log "--format=%(trailers:key=New-Versions,valueonly=true)" ${HEAD_SHA} -1
do echo "constraints: $constraint" >> cabal.project
done
cat cabal.project
Expand Down

0 comments on commit f108e40

Please sign in to comment.