We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88db14c commit fabb56cCopy full SHA for fabb56c
1 file changed
.github/workflows/release.yml
@@ -36,6 +36,19 @@ jobs:
36
id-token: write # IMPORTANT: mandatory for trusted publishing
37
attestations: write # IMPORTANT: mandatory for attestations
38
steps:
39
+ - name: Validate source branch and the version
40
+ shell: bash
41
+ env:
42
+ VERSION: ${{ github.event.inputs.version }}
43
+ SOURCE_BRANCH: ${{ github.event.inputs.sourceBranch }}
44
+ run: |
45
+ version="$VERSION"
46
+ sourceBranch="$SOURCE_BRANCH"
47
+ if [[ "$version" != 2.* ]]; then
48
+ echo "The version input '$version' is invalid. This workflow only supports versions starting with '2.'."
49
+ exit 1
50
+ fi
51
+
52
- name: Checkout timefold-solver
53
uses: actions/checkout@v6
54
with:
0 commit comments