qusal/.github/workflows/cron.yaml
Ben Grande 04d1aaf63e
feat: find PGP keys from within the linter
- Find PGP keys using the same methods as other scripts;
- Lower threshold to 30 days by default;
- Add environment variable to set threshold;
- Add colors to distinguish expired from expires soon; and
- Add days until key expiration when it is below threshold.
2024-07-11 15:29:57 +02:00

28 lines
579 B
YAML

# SPDX-FileCopyrightText: 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
#
# SPDX-License-Identifier: GPL-3.0-or-later
---
name: Cron
# yamllint disable-line rule:truthy
on:
schedule:
- cron: "0 0 1,15 * *"
concurrency:
group: ci-${{ github.ref }}-10
cancel-in-progress: true
jobs:
pgp-expiration-check:
strategy:
fail-fast: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Discover keys that are expired or close to expiration date
run: scripts/pgp-lint.sh