Skip to content

Commit 4ea0465

Browse files
committed
Update GH workflows
1 parent 3af9c7b commit 4ea0465

File tree

8 files changed

+33
-33
lines changed

8 files changed

+33
-33
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ name: "Checks the SDK only using APIs from the targeted API level"
33
on:
44
workflow_dispatch:
55
push:
6-
branches: [dev, master, support/2.x.x]
6+
branches: [main, support/2.x.x]
77
pull_request:
8-
branches: [dev, master, support/2.x.x]
8+
branches: [main, support/2.x.x]
99

1010
jobs:
1111
lint-api-level:
@@ -31,4 +31,4 @@ jobs:
3131
with:
3232
name: lint-report
3333
path: ./android/build/reports
34-
34+

.github/workflows/auto-merge-dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Auto-merge dependabot updates
22

33
on:
44
pull_request:
5-
branches: [ dev ]
5+
branches: [ main ]
66

77
permissions:
88
pull-requests: write

.github/workflows/build-and-publish.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@ name: Build and Publish
22

33
on:
44
push:
5-
branches: [dev, master, support/2.x.x]
5+
branches: [main, support/2.x.x]
66
paths-ignore:
77
- '.gradle/wrapper'
88
- '.gitignore'
99
- 'LICENSE'
1010
- 'THIRD PARTY NOTICES'
1111
- '*.md'
12-
env:
12+
env:
1313
PREVIEW_TASK: publishSnapshotPublicationToSonatypeSnapshotRepository
1414
PUBLISH_TASK: publishMavenCentralReleasePublicationToSonatypeRepository
15-
15+
1616
jobs:
1717
maven_Preview:
18-
if: ${{ github.ref == 'refs/heads/dev' }}
19-
environment:
18+
if: ${{ github.ref == 'refs/heads/main' }}
19+
environment:
2020
name: maven_central_snapshot
2121
runs-on: ubuntu-latest
2222
steps:
@@ -32,23 +32,23 @@ jobs:
3232
- name: Download file
3333
run: .\scripts\decodeAndWrite.ps1 -encodedValue $env:ENCODED_VALUE -outputPath $env:OUTPUT_PATH
3434
shell: pwsh
35-
env:
35+
env:
3636
ENCODED_VALUE: ${{ secrets.LOCAL_PROPERTIES }}
37-
OUTPUT_PATH: '.\local.properties'
37+
OUTPUT_PATH: '.\local.properties'
3838
- name: Download file
3939
run: .\scripts\decodeAndWrite.ps1 -encodedValue $env:ENCODED_VALUE -outputPath $env:OUTPUT_PATH
4040
shell: pwsh
41-
env:
41+
env:
4242
ENCODED_VALUE: ${{ secrets.SECRING_GPG }}
4343
OUTPUT_PATH: '.\secring.gpg'
4444
- name: Grant execute permission for gradlew
4545
run: chmod +x gradlew
4646
- name: Publish
4747
run: ./gradlew $PREVIEW_TASK
48-
48+
4949
maven_Release:
50-
if: ${{ github.ref == 'refs/heads/master' }}
51-
environment:
50+
if: ${{ github.ref == 'refs/heads/main' }}
51+
environment:
5252
name: maven_central_release
5353
runs-on: ubuntu-latest
5454
steps:
@@ -64,13 +64,13 @@ jobs:
6464
- name: Download file
6565
run: .\scripts\decodeAndWrite.ps1 -encodedValue $env:ENCODED_VALUE -outputPath $env:OUTPUT_PATH
6666
shell: pwsh
67-
env:
67+
env:
6868
ENCODED_VALUE: ${{ secrets.LOCAL_PROPERTIES }}
6969
OUTPUT_PATH: '.\local.properties'
7070
- name: Download file
7171
run: .\scripts\decodeAndWrite.ps1 -encodedValue $env:ENCODED_VALUE -outputPath $env:OUTPUT_PATH
7272
shell: pwsh
73-
env:
73+
env:
7474
ENCODED_VALUE: ${{ secrets.SECRING_GPG }}
7575
OUTPUT_PATH: '.\secring.gpg'
7676
- name: Grant execute permission for gradlew
@@ -92,7 +92,7 @@ jobs:
9292
gradle.properties
9393
**/gradle/**
9494
Scripts/**
95-
95+
9696
create_Tag:
9797
needs: maven_Release
9898
runs-on: ubuntu-latest
@@ -117,4 +117,4 @@ jobs:
117117
token: ${{ secrets.PERSONAL_TOKEN }}
118118
ref: ${{ steps.GetVersion.outputs.tag }}
119119

120-
120+

.github/workflows/codeql-analysis.yml

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

1414
on:
1515
push:
16-
branches: [dev, master, support/2.x.x]
16+
branches: [main, support/2.x.x]
1717
pull_request:
1818
# The branches below must be a subset of the branches above
19-
branches: [dev, support/2.x.x]
19+
branches: [main, support/2.x.x]
2020
schedule:
2121
- cron: '0 1 * * 4'
2222
workflow_dispatch:
2323

2424
jobs:
2525
analyze:
2626
name: Analyze
27-
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
28-
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
27+
runs-on: 'ubuntu-latest'
28+
timeout-minutes: 10
2929
permissions:
3030
actions: read
3131
contents: read

.github/workflows/conflicting-pr-label.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ name: PullRequestConflicting
77
on:
88
workflow_dispatch:
99
push:
10-
branches: [master, dev, support/2.x.x]
10+
branches: [main, support/2.x.x]
1111
pull_request:
1212
types: [synchronize]
13-
branches: [master, dev, support/2.x.x]
13+
branches: [main, support/2.x.x]
1414

1515
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1616
jobs:

.github/workflows/git-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
tags:
66
- "v[0-9]+.[0-9]+.[0-9]+"
77
workflow_dispatch:
8-
8+
99
jobs:
1010
Git_Release:
1111
runs-on: ubuntu-latest
@@ -18,7 +18,7 @@ jobs:
1818
with:
1919
workflow: build-and-publish.yml
2020
workflow_conclusion: success
21-
branch: master
21+
branch: main
2222
event: push
2323
name: drop
2424
path: drop

.github/workflows/gradle-build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Java CI with Gradle
22

33
on:
44
pull_request:
5-
branches: [dev, master, support/2.x.x]
6-
workflow_dispatch:
7-
5+
branches: [main, support/2.x.x]
6+
workflow_dispatch:
7+
88
jobs:
99
build:
1010
runs-on: ubuntu-latest
@@ -15,7 +15,7 @@ jobs:
1515
with:
1616
java-version: 20
1717
distribution: 'temurin'
18-
cache: gradle
18+
cache: gradle
1919
- name: Easy detect-secrets
2020
uses: RobertFischer/[email protected]
2121
- name: Grant execute permission for gradlew

.github/workflows/sonarcloud.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Static analysis with SonarCloud
22
on:
33
workflow_dispatch:
44
push:
5-
branches: [master, dev, support/2.x.x]
5+
branches: [main, support/2.x.x]
66
pull_request:
77
types: [opened, synchronize, reopened]
88

@@ -34,7 +34,7 @@ jobs:
3434
with:
3535
java-version: 20
3636
distribution: 'temurin'
37-
cache: gradle
37+
cache: gradle
3838
- name: Cache SonarCloud packages
3939
uses: actions/cache@v4
4040
with:

0 commit comments

Comments
 (0)