-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (33 loc) · 1.25 KB
/
send-graas-report.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Send GRaaS Report
# ~9:18PM pacific time, daily:
on:
schedule:
- cron: '0 5 * * *'
jobs:
Send-email:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Setup Java
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '11'
- name: Set up Cloud SDK
uses: google-github-actions/auth@v0
with:
# Google recommends using a Workload Identify Federation instead of using the service account key json file
# but this method is continuing to be supported. More info: https://github.com/google-github-actions/auth#setup
service_account: '[email protected]'
credentials_json: ${{ secrets.GCP_SA_KEY_JSON }}
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b
- name: Build with Gradle
working-directory: gtfu
run: ./gradlew build
- name: Run SendGrid Script
working-directory: gtfu
env:
SENDGRID_API_KEY: ${{secrets.SENDGRID_API_KEY}}
run: java -cp build/libs/gtfu.jar gtfu.GraphicReport -c src/main/resources/conf/cache