Skip to content

Commit a0c9df7

Browse files
authored
list outdated packages
This will give the list of outdated package, if found. Otherwise, will print "No outdated packages found." message
1 parent 8b4a3cd commit a0c9df7

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/cicd.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,19 @@ jobs:
2424
- name: Install Dependencies
2525
run: npm install
2626

27-
- name: Run Dependabot Simulation
28-
run: echo "Dependabot updates are being checked..."
27+
- name: Check outdated Package
28+
id: outdated-packages
29+
run: |
30+
npm outdated || echo "No outdated packages found"
2931
30-
- name: Notify Slack - Workflow Completed
32+
- name: Notify Slack - Outdated Packages
3133
uses: act10ns/slack@v2
3234
with:
3335
status: success
3436
channel: '#github-to-slack-notification'
35-
message: "Workflow completed: Dependabot has finished checking npm packages."
37+
message: |
38+
Following outdated packages found
39+
${{ steps.outdated-packages.outputs.result }}
3640
if: always()
3741

3842

0 commit comments

Comments
 (0)