-
Notifications
You must be signed in to change notification settings - Fork 80
45 lines (38 loc) · 1.36 KB
/
nightly-image-check.yml
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
34
35
36
37
38
39
40
41
42
43
44
45
name: Nightly Image Compare CI
on:
schedule:
# 10AM EST == 14 UTC
- cron: '0 14 * * *'
jobs:
compare:
runs-on: ubuntu-22.04
if: ${{ github.repository_owner == 'deephaven' }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup JDK 11
id: setup-java-11
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
- name: Set JAVA_HOME
run: echo "JAVA_HOME=${{ steps.setup-java-11.outputs.path }}" >> $GITHUB_ENV
- name: Setup gradle properties
run: |
.github/scripts/gradle-properties.sh >> gradle.properties
cat gradle.properties
- name: Run gradle
uses: burrunan/gradle-cache-action@v1
with:
job-id: image-compare
arguments: --continue pullImage compareImage
gradle-version: wrapper
- name: Notify Slack
uses: slackapi/slack-github-action@v1.24.0
id: notify-slack
if: ${{ failure() }}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_DHC_NOTIFY }}
with:
payload: '{"repository": "${{ github.repository }}", "message": "${{ github.workflow }}/${{ github.job }} failure, some image is out of date", "link": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"}'