Skip to content

Commit 389c911

Browse files
committed
Remove asking for version/tag
1 parent a80c875 commit 389c911

1 file changed

Lines changed: 4 additions & 14 deletions

File tree

.github/workflows/aaps-ci.yml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,6 @@ name: AAPS CI
33
on:
44
workflow_dispatch:
55
inputs:
6-
tagName:
7-
description: 'Select AAPS Version'
8-
required: true
9-
default: '3.4.2.6+aisf3.2.1'
10-
type: choice
11-
options:
12-
# ── 3.4.x (JDK 21) ──────────────────────────────
13-
- 3.4.2.6+aisf3.2.1
146
buildVariant:
157
description: 'Select Build Variant'
168
required: true
@@ -156,19 +148,17 @@ jobs:
156148
echo "ACCESS_TOKEN=$ACCESS_TOKEN" >> $GITHUB_ENV
157149
echo "✅ Access token obtained."
158150
159-
- name: Checkout source code at tag
151+
- name: Checkout source code
160152
uses: actions/checkout@v5
161153
with:
162154
fetch-depth: 0
163155

164-
- name: Determine JVM version from tag
156+
- name: Set JVM version
165157
run: |
166-
# jdk-map.json must be read before switching to the upstream tag,
167-
# as the upstream tag does not contain this file.
168-
TAG="${{ github.event.inputs.tagName }}"
169158
JAVA_VERSION=21
159+
BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)
170160
echo "JAVA_VERSION=$JAVA_VERSION" >> $GITHUB_ENV
171-
echo "ℹ️ Tag $TAG → JDK $JAVA_VERSION (from jdk-map.json)"
161+
echo "ℹ️ Building $BRANCH_NAME with JDK $JAVA_VERSION"
172162
173163
- name: Set BUILD_VARIANT
174164
run: |

0 commit comments

Comments
 (0)