Skip to content

Draft: Detect neglected files #37

Draft: Detect neglected files

Draft: Detect neglected files #37

name: Alarm for neglected files
on:
schedule:
- cron: "8 0 1 * *"
pull_request:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_TOKEN: ${{ secrets.LONELY_CODE_BOT_SLACK_TOKEN }}
jobs:
detect-neglected-files:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: "pipenv"
- name: Install Pipenv
run: |
pip install pipenv
pipenv install
- run: pipenv run python3 -m bin.detect_neglected_files
- name: Report failure to Slack
if: always()
uses: ravsamhq/notify-slack-action@v2
with:
status: ${{ job.status }}
notify_when: "failure"
notification_title: "Failed to check for neglected files"
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}