Skip to content

Send GRaaS Report

Send GRaaS Report #885

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