Skip to content

Commit 7c7b98d

Browse files
committed
chore: migrate workflow helper scripts to scripts/workflows
1 parent e4b65dc commit 7c7b98d

14 files changed

Lines changed: 25 additions & 17 deletions

.github/workflows/action-validator.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ jobs:
3030
action-validator 0.5.1
3131
3232
- name: Lint Actions
33-
run: ./bsctl/scripts/workflows/action-validator_check-actions_lint-actions.sh
33+
run: ./scripts/workflows/action-validator_check-actions_lint-actions.sh

.github/workflows/agents-validate.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ on:
88
- "AGENTS.md"
99
- ".agents/**"
1010
- ".github/workflows/agents-validate.yaml"
11-
- "bsctl/scripts/workflows/agents-validate_agents-instructions-check.sh"
11+
- "scripts/workflows/agents-validate_agents-instructions-check.sh"
1212
pull_request:
1313
branches:
1414
- main
1515
paths:
1616
- "AGENTS.md"
1717
- ".agents/**"
1818
- ".github/workflows/agents-validate.yaml"
19-
- "bsctl/scripts/workflows/agents-validate_agents-instructions-check.sh"
19+
- "scripts/workflows/agents-validate_agents-instructions-check.sh"
2020
workflow_dispatch:
2121

2222
defaults:
@@ -36,4 +36,4 @@ jobs:
3636
uses: mikefarah/yq@v4
3737

3838
- name: Validate agent instructions and skills
39-
run: ./bsctl/scripts/workflows/agents-validate_agents-instructions-check.sh
39+
run: ./scripts/workflows/agents-validate_agents-instructions-check.sh

.github/workflows/dependabot-autobump.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ jobs:
5353
5454
- name: Bump version
5555
if: steps.check_autobump.outputs.already_bumped == 'false'
56-
run: ./bsctl/scripts/workflows/dependabot-autobump_bump-version.sh
56+
run: ./scripts/workflows/dependabot-autobump_bump-version.sh
5757

5858
- name: Update CHANGELOG
5959
if: steps.check_autobump.outputs.already_bumped == 'false'
6060
env:
6161
PR_TITLE: ${{ github.event.pull_request.title }}
62-
run: ./bsctl/scripts/workflows/dependabot-autobump_update-changelog.sh
62+
run: ./scripts/workflows/dependabot-autobump_update-changelog.sh
6363

6464
- name: Check for changes
6565
if: steps.check_autobump.outputs.already_bumped == 'false'

.github/workflows/docs-bump.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
uses: actions/checkout@v6
2020

2121
- name: Version Bump
22-
run: ./bsctl/scripts/workflows/docs-bump_docs-bump_version-bump.sh
22+
run: ./scripts/workflows/docs-bump_docs-bump_version-bump.sh
2323

2424
- name: CHANGELOG Bump
25-
run: ./bsctl/scripts/workflows/docs-bump_docs-bump_CHANGELOG-bump.sh
25+
run: ./scripts/workflows/docs-bump_docs-bump_CHANGELOG-bump.sh

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
44

55

6+
---
7+
## [0.1.22] - 2026-04-09
8+
9+
### Changed
10+
11+
- Migrated workflow helper scripts from `bsctl/scripts/workflows/` to `scripts/workflows/` and updated workflow call sites (`docs-bump`, `dependabot-autobump`, `action-validator`, and `agents-validate`).
12+
- Updated #320 decommission planning docs to reflect completed script-path migration and the new neutral script location.
13+
614
---
715
## [0.1.21] - 2026-04-09
816

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# BasicSetupCliVersion - constant for semantic versioning
2-
BasicSetupCliVersion: "0.1.21"
2+
BasicSetupCliVersion: "0.1.22"

docs/plans/bsctl-codeql-decommission-plan.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ Retire remaining `bsctl` Go CLI and CodeQL dependencies without breaking release
1414
| Area | Current dependency | Why it exists today | Replacement target | Removal gate |
1515
| --- | --- | --- | --- | --- |
1616
| Release candidate workflow | `.github/workflows/release.yml` reads `resources/version.yaml` (legacy fallback to `bsctl/static/resources/constants.yaml` during transition) | Version source for candidate metadata | Complete cutover to root-level version source | Candidate workflow passes with no `bsctl` path usage |
17-
| Docs bump workflow | `.github/workflows/docs-bump.yaml` invokes `bsctl/scripts/workflows/docs-bump_*` | Enforces version/changelog divergence and date checks | Promote scripts to root-level workflow scripts (or equivalent maintained path) | Docs-bump checks pass using replacement scripts |
18-
| Dependabot autobump | `.github/workflows/dependabot-autobump.yaml` invokes `bsctl/scripts/workflows/dependabot-autobump_*` and stages `resources/version.yaml` (plus legacy constants during transition) | Automates patch bump + changelog update for dep PRs | Update to replacement version source + script paths | Dependabot autobump PR succeeds without `bsctl` references |
19-
| Action validator and agents validate | Workflows call scripts in `bsctl/scripts/workflows/*` | Existing script organization | Relocate scripts to neutral location (for example `scripts/workflows/`) | Validation workflows remain green after path migration |
17+
| Docs bump workflow | `.github/workflows/docs-bump.yaml` invokes `scripts/workflows/docs-bump_*` | Enforces version/changelog divergence and date checks | Keep scripts in root-level workflow script location | Docs-bump checks pass using replacement scripts |
18+
| Dependabot autobump | `.github/workflows/dependabot-autobump.yaml` invokes `scripts/workflows/dependabot-autobump_*` and stages `resources/version.yaml` (plus legacy constants during transition) | Automates patch bump + changelog update for dep PRs | Keep script paths and finalize legacy-version cleanup later | Dependabot autobump PR succeeds without `bsctl` references |
19+
| Action validator and agents validate | Workflows call scripts in `scripts/workflows/*` | Existing script organization | Keep scripts in neutral location | Validation workflows remain green after path migration |
2020
| Code scanning | `.github/workflows/codeql.yaml` scans Go | Security coverage for Go code under `bsctl/` | Re-scope/remove CodeQL after supported-language coverage decision | `bsctl` removal complete and security coverage documented |
2121
| Label automation | `.github/labeler.yaml` maps `bsctl/**/*` to change labels | Surfacing path-based impact in PRs | Replace with new paths or retire mapping if no longer needed | Label behavior remains correct after path removals |
2222
| Agent guidance and skills | `AGENTS.md`, `.agents/skills/*.md`, docs reference `resources/version.yaml` (legacy mention only for transition) | Instructions aligned with current version source | Update docs to new source-of-truth path | No remaining mandatory guidance references to retired path |
@@ -31,7 +31,7 @@ Retire remaining `bsctl` Go CLI and CodeQL dependencies without breaking release
3131

3232
### Phase B: Script-path migration
3333

34-
- Move workflow helper scripts out of `bsctl/scripts/workflows/`.
34+
- Workflow helper scripts are now in `scripts/workflows/`; keep call sites aligned.
3535
- Update all workflow call sites to the new script locations.
3636
- Validate behavior parity in CI.
3737

resources/version.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# BasicSetupCliVersion - primary version source for releases and docs bump automation
2-
BasicSetupCliVersion: "0.1.21"
2+
BasicSetupCliVersion: "0.1.22"

bsctl/scripts/workflows/action-validator_check-actions_lint-actions.sh renamed to scripts/workflows/action-validator_check-actions_lint-actions.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#! /usr/bin/env bash
22

3-
find .github/workflows -type f \( -iname \*.yaml -o -iname \*.yml \) \
4-
| grep -v codeql.yaml \
5-
| xargs -I {} action-validator --verbose {}
3+
find .github/workflows -type f \( -iname \*.yaml -o -iname \*.yml \) |
4+
grep -v codeql.yaml |
5+
xargs -I {} action-validator --verbose {}

bsctl/scripts/workflows/agents-validate_agents-instructions-check.sh renamed to scripts/workflows/agents-validate_agents-instructions-check.sh

File renamed without changes.

0 commit comments

Comments
 (0)