Skip to content

Commit

Permalink
[cd] Guard cd-circt PR on llvm-firtool publish to Maven (#4330)
Browse files Browse the repository at this point in the history
Co-authored-by: Schuyler Eldridge <[email protected]>
  • Loading branch information
jackkoenig and seldridge authored Aug 6, 2024
1 parent de4d0c6 commit e6df4cf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/scripts/check-maven-for-llvm-firtool-version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash

# Strip firtool- prefix from argument
VERSION=${1#firtool-}

POM="https://repo1.maven.org/maven2/org/chipsalliance/llvm-firtool/$VERSION/llvm-firtool-$VERSION.pom"

# Return 1 if not found
curl -o/dev/null -sfIL "$POM" || false
1 change: 1 addition & 0 deletions .github/workflows/cd-circt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ jobs:
pr-reviewers: |
seldridge
jackkoenig
should-create-pr: '.github/scripts/check-maven-for-llvm-firtool-version.sh'
github-token: ${{ secrets.CHISEL_BOT_TOKEN }}

0 comments on commit e6df4cf

Please sign in to comment.