Skip to content

Commit 7845863

Browse files
authored
Merge pull request #1211 from microsoftgraph/feature/php-auto-increment
- adds auto-increment of the PHP version
2 parents f6827ec + 46fb124 commit 7845863

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.azure-pipelines/generation-templates/php-kiota.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,12 @@ steps:
99
BuildConfiguration: $(buildConfiguration)
1010
OutputFullPath: $(kiotaDirectory)/output/*
1111
RepoModelsDir: $(Build.SourcesDirectory)/${{ parameters.repoName }}/src/Generated/
12+
13+
# right now the script runs fine with PHP 8.1 which is what is installed by default on the agent
14+
# https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2204-Readme.md
15+
# but we should use a setup task to install the right version of PHP
16+
# however, there does not seem to exist a setup-php task (equivalent to UseDotnet)
17+
18+
- pwsh: 'php $(Build.SourcesDirectory)/${{ parameters.repoName }}/scripts/BumpStableSdkVersion.php'
19+
displayName: Bump minor version for ${{ parameters.repoName }}
20+
workingDirectory: $(Build.SourcesDirectory)/${{ parameters.repoName }}/

0 commit comments

Comments
 (0)