mirror of
https://github.com/Lissy93/dashy.git
synced 2025-07-26 23:24:38 +02:00
🏗️ Adds action to check docs domain SSL cert and expirey
This commit is contained in:
parent
7b2ef2dda5
commit
633dc7ee0c
43
.github/workflows/domain-expirey-check.yml
vendored
Normal file
43
.github/workflows/domain-expirey-check.yml
vendored
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
name: 📕 Check Docs Domain Expiry
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 1 * * 0' # At 01:00 on Sunday.
|
||||||
|
jobs:
|
||||||
|
check-domain:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: Check domain
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
domain:
|
||||||
|
- https://dashy.to
|
||||||
|
steps:
|
||||||
|
- name: Check domain SSL and registry expire date
|
||||||
|
id: check-domain
|
||||||
|
uses: codex-team/action-check-domain@v1
|
||||||
|
with:
|
||||||
|
url: ${{ matrix.domain }}
|
||||||
|
- name: Raise issue if domain expiring soon
|
||||||
|
if: ${{ steps.check-domain.outputs.paid-till-days-left && steps.check-domain.outputs.paid-till-days-left < 30 }}
|
||||||
|
uses: rishabhgupta/git-action-issue@v2
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.BOT_GITHUB_TOKEN }}
|
||||||
|
assignees: Lissy93
|
||||||
|
title: '[WEBSITE] Domain Expiring Soon'
|
||||||
|
body: >
|
||||||
|
**Priority Notice**
|
||||||
|
Domain, ${{ matrix.domain }} will expire in ${{ steps.check-domain.outputs.paid-till-days-left }} days.
|
||||||
|
@Lissy93 - Please take action immediately to prevent any downtime
|
||||||
|
|
||||||
|
- name: Raise issue if SSL Cert expiring soon
|
||||||
|
if: ${{ steps.check-domain.outputs.ssl-expire-days-left && steps.check-domain.outputs.ssl-expire-days-left < 14 }}
|
||||||
|
uses: rishabhgupta/git-action-issue@v2
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.BOT_GITHUB_TOKEN }}
|
||||||
|
assignees: Lissy93
|
||||||
|
title: '[WEBSITE] SSL Cert Expiring Soon'
|
||||||
|
body: >
|
||||||
|
**Priority Notice**
|
||||||
|
The SSL Certificate for ${{ matrix.domain }} will expire in ${{ ssl-expire-days-left }} days, on ${{ steps.check-domain.outputs.ssl-expire-date }}.
|
||||||
|
@Lissy93 - Please take action immediately to prevent any downtime
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user