mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
Update domains.yml
This commit is contained in:
parent
3ddee2704e
commit
bb418681be
19
.github/workflows/domains.yml
vendored
19
.github/workflows/domains.yml
vendored
@ -2,18 +2,17 @@ name: Check domains
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 8 * * *'
|
||||
- cron: '0 8 * * *'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
hello:
|
||||
check:
|
||||
runs-on: ubuntu-latest
|
||||
name: Check domain
|
||||
strategy:
|
||||
matrix:
|
||||
domain:
|
||||
- openpanel.com
|
||||
- openpanel.org
|
||||
- https://openpanel.com
|
||||
- https://openpanel.org
|
||||
steps:
|
||||
- name: Check domain SSL and registry expire date
|
||||
id: check-domain
|
||||
@ -21,16 +20,16 @@ jobs:
|
||||
with:
|
||||
url: ${{ matrix.domain }}
|
||||
|
||||
- name: Create an issue if paid till number is below limit
|
||||
if: ${{ steps.check-domain.outputs.paid-till-days-left && steps.check-domain.outputs.paid-till-days-left < 10 }}
|
||||
- name: Create issue for registry expiry
|
||||
if: ${{ steps.check-domain.outputs.paid-till-days-left != '' && steps.check-domain.outputs.paid-till-days-left < 10 }}
|
||||
uses: rishabhgupta/git-action-issue@v2
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
title: ⚠️ ${{ matrix.domain }} — registry expiries in ${{ steps.check-domain.outputs.paid-till-days-left }} days
|
||||
title: ⚠️ ${{ matrix.domain }} — registry expires in ${{ steps.check-domain.outputs.paid-till-days-left }} days
|
||||
body: 'Paid till: `${{ steps.check-domain.outputs.paid-till-date }}`'
|
||||
|
||||
- name: Create an issue if SSL lifespan days number is below limit
|
||||
if: ${{ steps.check-domain.outputs.ssl-expire-days-left && steps.check-domain.outputs.ssl-expire-days-left < 10 }}
|
||||
- name: Create issue for SSL expiry
|
||||
if: ${{ steps.check-domain.outputs.ssl-expire-days-left != '' && steps.check-domain.outputs.ssl-expire-days-left < 10 }}
|
||||
uses: rishabhgupta/git-action-issue@v2
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
Loading…
Reference in New Issue
Block a user