Generated models and request builders #70
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (c) Microsoft Corporation. All rights reserved. | |
# Licensed under the MIT License. | |
# This action will bump the SDK version constant when a pull request against dev is created | |
# from a branch path spec like beta/pipelinebuild/* or v1.0/pipelinebuild/*. | |
name: "bump sdk version" | |
on: | |
pull_request: | |
branches: | |
- dev | |
paths: | |
- 'src/Model/**' | |
- 'src/*/Model/**' | |
- 'src/Beta/**' | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
bump-sdk-version: | |
if: startsWith(github.head_ref, 'beta/pipelinebuild/') || startsWith(github.head_ref, 'v1.0/pipelinebuild/') | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Git config user | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "Microsoft Graph DevX Tooling" | |
- name: Run increment script | |
run: php scripts/BumpStableSdkVersion.php | |
- name: Commit and push changes if any | |
run: if git commit -am "Bump SDK version"; then git push origin $GITHUB_HEAD_REF; fi |