You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -26,6 +26,8 @@ Ask the user for the following details using AskUserQuestion:
26
26
-**SLVSCode** (SonarLint for VS Code)
27
27
-**SLE** (SonarLint for Eclipse)
28
28
-**SLI** (SonarLint for IntelliJ)
29
+
8.**Version Bump**: Whether the automated release workflow should bump the project version after the release (i.e., prepare the next development iteration). If yes, also ask:
30
+
-**Bump Version PR Labels**: Optional comma-separated list of labels to apply to the version bump pull request (e.g., `update-next-dev,skip-qa`). Leave empty if no labels are needed.
29
31
30
32
### Step 1b: Check Existing release.yml
31
33
@@ -34,6 +36,20 @@ Before asking for all information, read the existing `.github/workflows/release.
34
36
35
37
This ensures consistency between the release and automated-release workflows.
36
38
39
+
### Step 1c: Detect Workflow File Extension
40
+
41
+
Before creating any workflow files, check whether the existing workflows in `.github/workflows/` use `.yml` or `.yaml` as the file extension:
42
+
43
+
```bash
44
+
ls .github/workflows/
45
+
```
46
+
47
+
- If most existing files use `.yml`, create new workflow files with the `.yml` extension.
48
+
- If most existing files use `.yaml`, create new workflow files with the `.yaml` extension.
49
+
- If there is a mix, prefer `.yml` (GitHub Actions default).
50
+
51
+
Apply this detected extension consistently when naming all new workflow files (e.g., `automated-release.yml` or `automated-release.yaml`).
52
+
37
53
### Step 2: Check Prerequisites
38
54
39
55
Remind the user of these prerequisites and **ask for confirmation** using AskUserQuestion:
@@ -59,11 +75,9 @@ Remind the user of these prerequisites and **ask for confirmation** using AskUse
59
75
60
76
### Step 3: Create Workflow Files
61
77
62
-
Create two workflow files in `.github/workflows/`:
63
-
64
-
#### 3.1 Create `automated-release.yml`
78
+
Create only the `automated-release` workflow file (using the detected extension from Step 1c). **Do not create a separate `bump-versions` workflow** — version bumping is handled directly by the reusable workflow when `bump-version: true` is passed.
65
79
66
-
**Standard workflow (SQS/SQC only):**
80
+
#### 3.1 Create `automated-release{EXT}` (standard, no SonarLint, no version bump)
0 commit comments