-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1254 from microsoftgraph/fix/gh-actions
Update GitHub Workflows for v2 SDK
- Loading branch information
Showing
6 changed files
with
66 additions
and
127 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. | ||
|
||
name: "Bump SDK version in generated pull request" | ||
|
||
# Controls when the action will run. Triggers the workflow on push | ||
# events but only for branches with the following branch spec: kiota/v1.0/pipelinebuild/* | ||
on: | ||
push: | ||
branches: | ||
- "kiota/v1.0/pipelinebuild/*" | ||
paths: | ||
- 'src/Generated/**' | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
bump-sdk-version: | ||
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/BumpPreviewSdkVersion.php | ||
|
||
- name: Commit and push changes if any | ||
run: if git commit -am "Bump SDK version"; then git push origin $GITHUB_REF; fi |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: "create release" | ||
|
||
on: | ||
push: | ||
tags: | ||
'*' | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
create-release: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Create Release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
generateReleaseNotes: true | ||
prerelease: ${{ contains(github.ref_name, 'RC') }} | ||
skipIfReleaseExists: true |
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ name: "tag release" | |
on: | ||
push: | ||
branches: | ||
- main | ||
- feat/kiota-preview | ||
|
||
defaults: | ||
run: | ||
|
This file was deleted.
Oops, something went wrong.