-
Notifications
You must be signed in to change notification settings - Fork 592
45 lines (44 loc) · 1.36 KB
/
outdated-dependencies.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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_outdated_dependencies:
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v2
- name: Use Node.js 18
uses: actions/setup-node@v1
with:
node-version: 18
# TODO: uncomment install
# - name: Install dependencies
# run: npm install
- name: Check outdated dependencies
id: outdated
run: |
npm outdated > ./outdated
{
echo 'OUTDATED_DEPENDENCIES<<EOF'
cat ./outdated
echo EOF
} >> "$GITHUB_ENV"
- name: Report Status
run: echo $OUTDATED_DEPENDENCIES
env:
OUTDATED_DEPENDENCIES: ${{ steps.outdated.outputs.OUTDATED_DEPENDENCIES }}
# - name: Report Status
# if: always()
# uses: ravsamhq/notify-slack-action@v2
# with:
# status: ${{ job.status }}
# footer: "<{run_url}|View Run> | $GITHUB_OUTPUT"
# notify_when: "failure"
# notification_title: "outdated dependencies"
# env:
# SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }}