Skip to content

Commit 449234c

Browse files
changed main.yml
1 parent 642ec01 commit 449234c

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

.github/workflows/main.yml

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

1113
steps:
1214
- name: Checkout code
@@ -23,29 +25,22 @@ jobs:
2325

2426
- name: Cache SonarQube packages
2527
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 }}
3735
with:
3836
path: ~/.gradle/caches
3937
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
4038
restore-keys: ${{ runner.os }}-gradle
4139

4240
- name: Run tests and generate Jacoco report
43-
env:
44-
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
4541
run: ./gradlew test jacocoTestReport --no-daemon
4642

4743
- name: Build and SonarQube analyze
4844
env:
4945
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
50-
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
5146
run: ./gradlew build sonar --info

0 commit comments

Comments
 (0)