Skip to content

Commit 9059d2c

Browse files
changed main.yml
1 parent 744310d commit 9059d2c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ on:
77
jobs:
88
build:
99
runs-on: ubuntu-latest
10-
env:
11-
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
1210

1311
steps:
1412
- name: Checkout code
@@ -25,13 +23,17 @@ jobs:
2523

2624
- name: Cache SonarQube packages
2725
uses: actions/cache@v4
26+
env:
27+
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
2828
with:
2929
path: ~/.sonar/cache
3030
key: ${{ runner.os }}-sonar
3131
restore-keys: ${{ runner.os }}-sonar
3232

3333
- name: Cache Gradle packages
3434
uses: actions/cache@v4
35+
env:
36+
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
3537
with:
3638
path: ~/.gradle/caches
3739
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
@@ -43,4 +45,5 @@ jobs:
4345
- name: Build and SonarQube analyze
4446
env:
4547
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
48+
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
4649
run: ./gradlew build sonar --info

0 commit comments

Comments
 (0)