Skip to content

Commit 18053ef

Browse files
Move check into checks workflow
1 parent 94e654f commit 18053ef

File tree

2 files changed

+21
-28
lines changed

2 files changed

+21
-28
lines changed

.github/workflows/check-version-against-tag.yaml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/workflows/checks.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ on:
2626
default: true
2727
type: boolean
2828
required: false
29+
enable_check_version_against_tag:
30+
description: "Whether to enable the version tag checker"
31+
default: true
32+
type: boolean
33+
requred: false
2934
ignored_pr_jobs:
3035
description: "Space separated list of jobs to ignore when checking PR workflow dependencies"
3136
default: ""
@@ -67,6 +72,22 @@ jobs:
6772
run: rapids-check-pr-job-dependencies "${IGNORED_JOBS}"
6873
env:
6974
IGNORED_JOBS: ${{ inputs.ignored_pr_jobs }}
75+
- name: Fetch tags
76+
if: ${{ inputs.enable_check_version_against_tag }}
77+
uses: actions/checkout@v5
78+
with:
79+
fetch-depth: 0
80+
fetch-tags: true
81+
- name: Check VERSION file against latest tag
82+
if: ${{ inputs.enable_check_version_against_tag }}
83+
run: |
84+
python -m pip install dunamai
85+
expected_version="$(python -m dunamai from git --format '{base}')"
86+
if [ "$expected_version" != "$(cat VERSION)" ]; then
87+
echo "Expected VERSION file to be \"$expected_version\", got:"
88+
cat VERSION
89+
exit 1
90+
fi
7091
- name: Telemetry upload attributes
7192
uses: rapidsai/shared-actions/telemetry-dispatch-stash-job-artifacts@main
7293
continue-on-error: true

0 commit comments

Comments
 (0)