File tree Expand file tree Collapse file tree 2 files changed +21
-3
lines changed
Expand file tree Collapse file tree 2 files changed +21
-3
lines changed Original file line number Diff line number Diff line change 1414 - name : Checkout
1515 uses : actions/checkout@v4
1616
17+ - name : Cache apt packages
18+ uses : actions/cache@v4
19+ with :
20+ path : /var/cache/apt/archives
21+ key : ${{ runner.os }}-apt-shellcheck-${{ hashFiles('**/lockfiles') }}
22+ restore-keys : |
23+ ${{ runner.os }}-apt-shellcheck-
24+
1725 - name : Install ShellCheck
1826 run : |
1927 sudo apt-get update
Original file line number Diff line number Diff line change @@ -6,9 +6,17 @@ permissions:
66 pull-requests : write # For creating releases
77
88on :
9- push :
10- branches :
11- - main # Or your release branch
9+ workflow_dispatch :
10+ inputs :
11+ version_bump_type :
12+ description : ' The type of version bump (major, minor, or patch)'
13+ required : true
14+ default : ' patch'
15+ type : ' choice'
16+ options :
17+ - patch
18+ - minor
19+ - major
1220
1321jobs :
1422 calculate-version :
3341 run : |
3442 chmod +x .github/scripts/bump-version.sh
3543 ./.github/scripts/bump-version.sh
44+ env :
45+ VERSION_BUMP_TYPE : ${{ github.event.inputs.version_bump_type }}
3646 # In a real scenario, you might pass VERSION_BUMP_TYPE based on commit analysis
3747 # env:
3848 # VERSION_BUMP_TYPE: 'patch' # or 'minor', 'major'
You can’t perform that action at this time.
0 commit comments