File tree Expand file tree Collapse file tree 2 files changed +21
-28
lines changed Expand file tree Collapse file tree 2 files changed +21
-28
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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 : " "
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
You can’t perform that action at this time.
0 commit comments