Skip to content

Commit 4300e6f

Browse files
committed
clean up workflows
1 parent ba3ec1b commit 4300e6f

File tree

6 files changed

+25
-85
lines changed

6 files changed

+25
-85
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ updates:
3939
schedule:
4040
interval: daily
4141
open-pull-requests-limit: 10
42-
target-branch: feature/6.0
4342
groups:
4443
kiota-dependencies:
4544
patterns:
@@ -49,7 +48,6 @@ updates:
4948
schedule:
5049
interval: daily
5150
open-pull-requests-limit: 10
52-
target-branch: feature/6.0
5351
groups:
5452
kiota-dependencies:
5553
patterns:
@@ -59,7 +57,6 @@ updates:
5957
schedule:
6058
interval: daily
6159
open-pull-requests-limit: 10
62-
target-branch: feature/6.0
6360
groups:
6461
kiota-dependencies:
6562
patterns:
@@ -69,4 +66,3 @@ updates:
6966
schedule:
7067
interval: daily
7168
open-pull-requests-limit: 10
72-
target-branch: feature/6.0

.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: 2 additions & 6 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:

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 2 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:

.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: 20
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: 20
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: 7 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: 20
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: 20
62+
distribution: 'temurin'
7863
cache: gradle
7964
- name: Easy detect-secrets
8065
uses: RobertFischer/[email protected]

0 commit comments

Comments
 (0)