Check outdated dependencies #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check outdated dependencies | |
on: | |
# TODO: uncomment schedule | |
# schedule: | |
# # Runs Mon-Fri at 0:00 UTC ( 00:00 EST ) | |
# - cron: "0 0 * * 1-5" | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18] | |
# outputs: | |
# output: ${{ steps.run_outdated.outputs }} | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- id: run_outdated | |
run: npm outdated >> "$GITHUB_OUTPUT" | |
- name: Report Status | |
if: always() | |
uses: ravsamhq/notify-slack-action@v2 | |
with: | |
status: ${{ job.status }} | |
message_format: "{emoji} *{workflow}* {status_message} in <{repo_url}|{repo}>" | |
footer: "<{run_url}|View Run> | $GITHUB_OUTPUT" | |
notify_when: "failure" | |
notification_title: "outdated dependencies" | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }} |