Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update v1 SDK GH Workflows #1322

Merged
merged 5 commits into from
Aug 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 0 additions & 36 deletions .github/workflows/bump-kiota-sdk-version.yml

This file was deleted.

11 changes: 4 additions & 7 deletions .github/workflows/bump-sdk-version.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
# 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:
push:
branches:
- dev
- "v1.0/pipelinebuild/*"
- "beta/pipelinebuild/*"
paths:
- 'src/Model/**'
- 'src/*/Model/**'
Expand All @@ -22,7 +20,6 @@ defaults:

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
Expand All @@ -35,4 +32,4 @@ jobs:
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
run: if git commit -am "Bump SDK version"; then git push origin $GITHUB_REF; fi
24 changes: 24 additions & 0 deletions .github/workflows/create-release.yml
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
6 changes: 2 additions & 4 deletions .github/workflows/pr-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@ name: "Validate Pull Request"

on:
push:
branches: [ main, dev, feat/kiota-preview ]
branches: [ main, dev ]
pull_request:
branches: [ main, dev, feat/kiota-preview ]
# Add assigned to defaults as a hack to easily trigger code-gen PRs to run validation
types: [assigned, opened, synchronize, reopened]
branches: [ main, dev ]

defaults:
run:
Expand Down
57 changes: 0 additions & 57 deletions .github/workflows/update-docs.yml

This file was deleted.