-
-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (35 loc) · 1.21 KB
/
update-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
name: Helm chart image tag check
on:
workflow_dispatch:
schedule:
- cron: "0 */12 * * *"
jobs:
check:
name: Check
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Download "helm-chart-update-check"
uses: engineerd/configurator@v0.0.10
with:
name: "hcuc"
fromGitHubReleases: "true"
repo: "pmoscode/helm-chart-update-check"
urlTemplate: "https://github.com/pmoscode/helm-chart-update-check/releases/download/{{version}}/hcuc-{{version}}-linux-amd64.tar.gz"
version: ${{ vars.HCUC_BINARY_VERSION }}
pathInArchive: "hcuc"
token: ${{ secrets.GITHUB_TOKEN }}
- name: Check for updates
run: |
hcuc --docker-hub-repo jlesage/jdownloader-2 --fail-on-update --debug
- name: Send notification
if: failure()
env:
MAILJET_KEY: ${{ secrets.MAILJET_KEY }}
MAILJET_SECRET: ${{ secrets.MAILJET_SECRET }}
MAILJET_FROM_MAIL: ${{ vars.MAILJET_FROM_MAIL }}
MAILJET_TO_MAIL: ${{ vars.MAILJET_TO_MAIL }}
MAILJET_SUBJECT: ${{ vars.MAILJET_SUBJECT }}
run: |
./pipeline/send_mail.sh