File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed
Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,16 @@ name: APIGenerator CI/CD Pipeline
22
33on :
44 workflow_dispatch :
5+ inputs :
6+ target_branch :
7+ description : ' Target branch for API updates'
8+ required : false
9+ default : ' automatic-api-updates'
10+ skip_cache :
11+ description : ' Skip cache and force rebuild'
12+ required : false
13+ default : false
14+ type : boolean
515 schedule :
616 - cron : ' 0 1 * * 0' # Every Sunday at 1 AM UTC
717
@@ -11,7 +21,7 @@ permissions:
1121 actions : read
1222
1323env :
14- TARGET_BRANCH : automatic-api-updates
24+ TARGET_BRANCH : ${{ inputs.target_branch || ' automatic-api-updates' }}
1525 FALLBACK_BRANCH : main
1626 DOTNET_VERSION : ' 8.0.x'
1727 BUILD_CONFIGURATION : Release
6474
6575 - name : Cache NuGet packages
6676 uses : actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
67-
77+ if : ${{ !inputs.skip_cache }}
6878 with :
6979 path : |
7080 ~/.nuget/packages
@@ -150,7 +160,7 @@ jobs:
150160
151161 - name : Cache NuGet packages
152162 uses : actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
153-
163+ if : ${{ !inputs.skip_cache }}
154164 with :
155165 path : |
156166 ~/.nuget/packages
@@ -528,7 +538,7 @@ jobs:
528538
529539 - name : Cache NuGet packages
530540 uses : actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
531-
541+ if : ${{ !inputs.skip_cache }}
532542 with :
533543 path : |
534544 ~/.nuget/packages
You can’t perform that action at this time.
0 commit comments