Skip to content

Commit 2982dda

Browse files
Merge pull request #1799 from microsoftgraph/rsh/workflowCleanup
clean up workflows
2 parents ece3ecf + 6cdf845 commit 2982dda

File tree

6 files changed

+30
-122
lines changed

6 files changed

+30
-122
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -31,42 +31,4 @@ updates:
3131
directory: "/"
3232
schedule:
3333
interval: daily
34-
open-pull-requests-limit: 10
35-
36-
# remove once v5 GAs
37-
- package-ecosystem: gradle
38-
directory: "/"
39-
schedule:
40-
interval: daily
41-
open-pull-requests-limit: 10
42-
target-branch: feature/6.0
43-
groups:
44-
kiota-dependencies:
45-
patterns:
46-
- "*kiota*"
47-
- package-ecosystem: gradle
48-
directory: "/android"
49-
schedule:
50-
interval: daily
51-
open-pull-requests-limit: 10
52-
target-branch: feature/6.0
53-
groups:
54-
kiota-dependencies:
55-
patterns:
56-
- "*kiota*"
57-
- package-ecosystem: maven
58-
directory: "/"
59-
schedule:
60-
interval: daily
61-
open-pull-requests-limit: 10
62-
target-branch: feature/6.0
63-
groups:
64-
kiota-dependencies:
65-
patterns:
66-
- "*kiota*"
67-
- package-ecosystem: github-actions
68-
directory: "/"
69-
schedule:
70-
interval: daily
71-
open-pull-requests-limit: 10
72-
target-branch: feature/6.0
34+
open-pull-requests-limit: 10

.github/policies/msgraph-sdk-java-branch-protection.yml

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -46,40 +46,3 @@ configuration:
4646
# Restrict who can dismiss pull request reviews. boolean
4747
restrictsReviewDismissals: false
4848

49-
- branchNamePattern: feature/6.0
50-
# This branch pattern applies to the following branches as of 06/12/2023 10:31:15:
51-
# feature/6.0
52-
53-
# Specifies whether this branch can be deleted. boolean
54-
allowsDeletions: false
55-
# Specifies whether forced pushes are allowed on this branch. boolean
56-
allowsForcePushes: false
57-
# Specifies whether new commits pushed to the matching branches dismiss pull request review approvals. boolean
58-
dismissStaleReviews: true
59-
# Specifies whether admins can overwrite branch protection. boolean
60-
isAdminEnforced: false
61-
# Indicates whether "Require a pull request before merging" is enabled. boolean
62-
requiresPullRequestBeforeMerging: true
63-
# Specifies the number of pull request reviews before merging. int (0-6). Should be null/empty if PRs are not required
64-
requiredApprovingReviewsCount: 1
65-
# Require review from Code Owners. Requires requiredApprovingReviewsCount. boolean
66-
requireCodeOwnersReview: true
67-
# Are commits required to be signed. boolean. TODO: all contributors must have commit signing on local machines.
68-
requiresCommitSignatures: false
69-
# Are conversations required to be resolved before merging? boolean
70-
requiresConversationResolution: true
71-
# Are merge commits prohibited from being pushed to this branch. boolean
72-
requiresLinearHistory: false
73-
# Required status checks to pass before merging. Values can be any string, but if the value does not correspond to any existing status check, the status check will be stuck on pending for status since nothing exists to push an actual status
74-
requiredStatusChecks:
75-
- Analyze (java)
76-
- lint-api-level
77-
- license/cla
78-
- build
79-
# Require branches to be up to date before merging. Requires requiredStatusChecks. boolean
80-
requiresStrictStatusChecks: true
81-
# Indicates whether there are restrictions on who can push. boolean. Should be set with whoCanPush.
82-
restrictsPushes: false
83-
# Restrict who can dismiss pull request reviews. boolean
84-
restrictsReviewDismissals: false
85-

.github/workflows/api-level-lint.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,9 @@ name: "Checks the SDK only using APIs from the targeted API level"
33
on:
44
workflow_dispatch:
55
push:
6-
branches:
7-
- dev
8-
- feature/6.0
6+
branches: [ dev ]
97
pull_request:
10-
branches:
11-
- dev
12-
- feature/6.0
8+
branches: [ dev ]
139

1410
jobs:
1511
lint-api-level:
@@ -19,7 +15,7 @@ jobs:
1915
- uses: actions/setup-java@v4
2016
with:
2117
distribution: 'temurin'
22-
java-version: 20
18+
java-version: 21
2319
- name: Setup Android SDK
2420
uses: android-actions/[email protected]
2521
- name: Add execution right to the script

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ name: "CodeQL"
1313

1414
on:
1515
push:
16-
branches: [ "dev", "feature/6.0" ]
16+
branches: [ dev ]
1717
pull_request:
1818
# The branches below must be a subset of the branches above
19-
branches: [ "dev", "feature/6.0" ]
19+
branches: [ dev ]
2020
schedule:
2121
- cron: '0 1 * * 4'
2222
workflow_dispatch:
@@ -47,7 +47,7 @@ jobs:
4747
- name: Set up JDK
4848
uses: actions/setup-java@v4
4949
with:
50-
java-version: 20
50+
java-version: 21
5151
distribution: 'temurin'
5252
cache: gradle
5353

.github/workflows/gradle-build.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Gradle Build and Compare Package
22

33
on:
44
push:
5-
branches: [ dev, feature/6.0 ]
5+
branches: [ dev ]
66
pull_request:
7-
branches: [ dev, feature/6.0 ]
7+
branches: [ dev ]
88
paths-ignore:
99
- '.gradle/wrapper'
1010
- '.gitignore'
@@ -21,8 +21,8 @@ jobs:
2121
- name: Set up JDK
2222
uses: actions/setup-java@v4
2323
with:
24-
java-version: 18
25-
distribution: 'adopt'
24+
java-version: 21
25+
distribution: 'temurin'
2626
cache: gradle
2727
- name: Detect Secrets
2828
uses: RobertFischer/[email protected]
@@ -41,7 +41,7 @@ jobs:
4141
- name: Upload a Build Artifact
4242
uses: actions/upload-artifact@v4
4343
with:
44-
name: kiota-drop
44+
name: drop
4545
path: |
4646
**/libs/*
4747
build/generated-pom.xml
@@ -58,30 +58,30 @@ jobs:
5858
needs: build
5959
runs-on: ubuntu-latest
6060
env:
61-
CURRENT_PKG_DIFF: ./artifacts/current-kiota/build/libs/msgraph-sdk-java.jar
62-
PRIOR_PKG_DIFF: ./artifacts/previous-kiota/build/libs/msgraph-sdk-java.jar
61+
CURRENT_PKG_DIFF: ./artifacts/current/build/libs/msgraph-sdk-java.jar
62+
PRIOR_PKG_DIFF: ./artifacts/previous/build/libs/msgraph-sdk-java.jar
6363
steps:
6464
- uses: actions/checkout@v4
6565
- name: Set up JDK
6666
uses: actions/setup-java@v4
6767
with:
68-
java-version: 18
69-
distribution: 'adopt'
68+
java-version: 21
69+
distribution: 'temurin'
7070
cache: gradle
7171
- name: Download Current Build
7272
uses: actions/download-artifact@v4
7373
with:
74-
name: kiota-drop
75-
path: artifacts/current-kiota/
74+
name: drop
75+
path: artifacts/current/
7676
- name: Download Last Successful Build
7777
uses: dawidd6/[email protected]
7878
with:
7979
workflow: preview-and-release.yml
8080
workflow_conclusion: success
81-
branch: feature/6.0
81+
branch: dev
8282
event: push
83-
name: kiota-drop
84-
path: artifacts/previous-kiota/
83+
name: drop
84+
path: artifacts/previous/
8585
- name: Run PKG Diff
8686
continue-on-error: true
8787
run: |

.github/workflows/preview-and-release.yml

Lines changed: 9 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Maven Preview/Release and Github Release
22

33
on:
44
push:
5-
branches: [ "dev", "feature/6.0" ]
5+
branches: [ dev ]
66
paths-ignore:
77
- '.gradle/wrapper'
88
- '.gitignore'
@@ -17,7 +17,7 @@ env:
1717

1818
jobs:
1919
maven_Preview:
20-
if: ${{ github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/feature/6.0' }}
20+
if: ${{ github.ref == 'refs/heads/dev' }}
2121
environment:
2222
name: maven_central_snapshot
2323
runs-on: ubuntu-latest
@@ -26,8 +26,8 @@ jobs:
2626
- name: Set up JDK
2727
uses: actions/setup-java@v4
2828
with:
29-
java-version: 18
30-
distribution: 'adopt'
29+
java-version: 21
30+
distribution: 'temurin'
3131
cache: gradle
3232
- name: Easy detect-secrets
3333
uses: RobertFischer/[email protected]
@@ -46,22 +46,7 @@ jobs:
4646
- name: Grant execute permission for gradlew
4747
run: chmod +x gradlew
4848
- name: Publish
49-
run: ./gradlew $PREVIEW_TASK
50-
- name: Upload Build Artifact
51-
uses: actions/upload-artifact@v4
52-
with:
53-
name: drop
54-
path: |
55-
**/libs/*
56-
build/generated-pom.xml
57-
build/generated-pom.xml.asc
58-
build.gradle
59-
gradlew
60-
gradlew.bat
61-
settings.gradle
62-
gradle.properties
63-
**/gradle/**
64-
Scripts/**
49+
run: ./gradlew $PREVIEW_TASK
6550

6651
maven_Release:
6752
if: ${{ github.ref == 'refs/heads/dev' }}
@@ -73,8 +58,8 @@ jobs:
7358
- name: Set up JDK
7459
uses: actions/setup-java@v4
7560
with:
76-
java-version: 18
77-
distribution: 'adopt'
61+
java-version: 21
62+
distribution: 'temurin'
7863
cache: gradle
7964
- name: Easy detect-secrets
8065
uses: RobertFischer/[email protected]
@@ -113,6 +98,8 @@ jobs:
11398
create_Tag:
11499
needs: maven_Release
115100
runs-on: ubuntu-latest
101+
permissions:
102+
contents: write
116103
env:
117104
RELEASE_TAG: ""
118105
steps:

0 commit comments

Comments
 (0)