Skip to content

Commit 4d40901

Browse files
authored
Merge pull request #106 from ashikkumar23/copilot/fix-package-update-job
fix: replace taichi/actions-package-update with modern native workflow
2 parents e948f3f + 0532df7 commit 4d40901

1 file changed

Lines changed: 26 additions & 13 deletions

File tree

.github/workflows/package_update.yml

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,36 @@ on:
44
schedule:
55
# Runs at 00:00 on Wednesday
66
- cron: '0 0 * * 3'
7+
workflow_dispatch:
78

89
jobs:
910
package-update:
1011
runs-on: ubuntu-latest
1112
steps:
1213
- name: Checkout
13-
uses: actions/checkout@v3
14-
- name: Set remote url
15-
run: git remote set-url --push origin https://$GITHUB_ACTOR:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
16-
- name: Update package.json
17-
uses: taichi/actions-package-update@master
18-
env:
19-
AUTHOR_EMAIL: ashikkumar23@gmail.com
20-
AUTHOR_NAME: Ashik Kumar
21-
EXECUTE: "true"
22-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23-
LOG_LEVEL: debug
24-
SET_NODE_VERSION: "24"
14+
uses: actions/checkout@v4
15+
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v4
2518
with:
26-
args: -u --packageFile package.json --loglevel verbose
19+
node-version: '24'
20+
21+
- name: Update dependencies
22+
run: |
23+
npm install -g npm-check-updates
24+
ncu -u --packageFile package.json
25+
npm install
26+
27+
- name: Create Pull Request
28+
uses: peter-evans/create-pull-request@v7
29+
with:
30+
token: ${{ secrets.GITHUB_TOKEN }}
31+
commit-message: "chore: update dependencies"
32+
title: "chore: update npm dependencies"
33+
body: |
34+
Automated dependency updates via [npm-check-updates](https://github.com/raineorshine/npm-check-updates).
35+
36+
This PR was created by the [Update Dependencies](../../actions/workflows/package_update.yml) workflow.
37+
branch: "package-update/auto"
38+
author: "Ashik Kumar <ashikkumar23@gmail.com>"
39+
labels: "dependencies"

0 commit comments

Comments
 (0)