Skip to content

Commit d905b93

Browse files
committed
blastdns: Fail if the checkout is not the requested version
A version missing from the ref map would check out the default branch and build the wrong sources under that version number; compare the checkout's pyproject.toml version with the requested one.
1 parent f5c5693 commit d905b93

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎.github/workflows/build-blastdns.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@ jobs:
109109
ref: ${{ fromJSON(env.BLASTDNS_REFS)[env.BLASTDNS_VERSION] }}
110110
persist-credentials: false
111111

112+
- name: Check the checkout is the requested version
113+
run: grep -qx "version = \"${BLASTDNS_VERSION}\"" pyproject.toml
114+
112115
- name: Checkout python-wheels
113116
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
114117
with:

0 commit comments

Comments
 (0)