Skip to content

Commit 3340353

Browse files
committed
chore: update workflows to use ubuntu-22.04 and relocate Gradle env variables to run steps
1 parent 6c9d9e1 commit 3340353

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,11 @@ name: build
66
on: [push, workflow_call]
77
jobs:
88
build:
9-
runs-on: ubuntu-latest
9+
runs-on: ubuntu-22.04
1010
timeout-minutes: 10
1111
permissions:
1212
contents: write
1313
packages: read
14-
env:
15-
ORG_GRADLE_PROJECT_ghUsername: ${{ github.actor }}
16-
ORG_GRADLE_PROJECT_ghPassword: ${{ secrets.GITHUB_TOKEN }}
1714
steps:
1815
- uses: actions/checkout@v6.0.1
1916
with:
@@ -28,4 +25,7 @@ jobs:
2825
with:
2926
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
3027
- run: ./gradlew build --console=plain
28+
env:
29+
ORG_GRADLE_PROJECT_ghUsername: ${{ github.actor }}
30+
ORG_GRADLE_PROJECT_ghPassword: ${{ github.token }}
3131
- uses: gradle/actions/dependency-submission@v5.0.0

.github/workflows/full.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,11 @@ on:
1313
workflow_call:
1414
jobs:
1515
full:
16-
runs-on: ubuntu-latest
16+
runs-on: ubuntu-22.04
1717
timeout-minutes: 10
1818
permissions:
1919
contents: read
2020
packages: read
21-
env:
22-
ORG_GRADLE_PROJECT_ghUsername: ${{ github.actor }}
23-
ORG_GRADLE_PROJECT_ghPassword: ${{ secrets.GITHUB_TOKEN }}
2421
steps:
2522
- uses: actions/checkout@v6.0.1
2623
with:
@@ -36,3 +33,6 @@ jobs:
3633
cache-read-only: true
3734
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
3835
- run: ./gradlew build --console=plain --no-build-cache --no-configuration-cache --rerun-tasks
36+
env:
37+
ORG_GRADLE_PROJECT_ghUsername: ${{ github.actor }}
38+
ORG_GRADLE_PROJECT_ghPassword: ${{ github.token }}

0 commit comments

Comments
 (0)