readd env block to each notification step
@@ -8,7 +8,6 @@ jobs:
build:
runs-on: ubuntu-latest
-
steps:
- uses: actions/checkout@v2
- uses: innocarpe/actions-slack@v1
@@ -17,9 +16,6 @@ steps:
success_text: Start ${{ github.ref }} build
failure_text: Start ${{ github.ref }} failed
cancelled_text: Start ${{ github.ref }} cancelled
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
- uses: actions/setup-java@v1
with:
java-version: 11
@@ -37,8 +33,8 @@ steps:
failure_text: Build step failed
cancelled_text: Build step cancelled
env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Required
+ SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }} # Required
test:
runs-on: ubuntu-latest
@@ -85,7 +81,6 @@ steps:
# restore-keys: |
# ${{ runner.os }}-maven-
# - run: ./gradlew build -x :tests:acceptance-test:build -x dependencyCheckAnalyze -x javadoc
-
itest:
runs-on: ubuntu-latest
needs: build
@@ -140,7 +135,6 @@ steps:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Required
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }} # Required
-
atest:
runs-on: ubuntu-latest
needs: build
