Skip to content

Commit 3077f8a

Browse files
Merge pull request #74 from haskell-github-trust/new-hackage-versions
Use New-Hackage-Versions in CI
2 parents 01d5ca4 + b777965 commit 3077f8a

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,14 @@ jobs:
4343
with:
4444
path: ${{ steps.cabal-store.outputs.path }}
4545
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('**/*.cabal') }}
46+
- name: Extract New-Hackage-Versions git trailer from Renovate
47+
if: ${{ github.event_name == 'pull_request' }}
48+
run: |
49+
for constraint in $(git log "--format=%(trailers:key=New-Hackage-Versions,valueonly=true)" ${{ github.event.pull_request.head.sha }} -1)
50+
do
51+
echo "constraints: $constraint" >> cabal.project.local
52+
echo "::notice title=Dependency Constraint Applied::$constraint"
53+
done
4654
- name: Build dependencies
4755
run: cabal build all --only-dependencies
4856
- name: Save cache

cabal.project

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
packages: .

0 commit comments

Comments
 (0)