Skip to content

Commit

Permalink
UPdate workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
hwangsihu committed Aug 13, 2024
1 parent 22264fd commit fec2ed8
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 10 deletions.
6 changes: 0 additions & 6 deletions .github/dependabot.yml

This file was deleted.

2 changes: 0 additions & 2 deletions .github/workflows/biome.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ on:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '36 1 * * 6'

jobs:
biome:
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ on:
pull_request:
# The branches below must be a subset of the branches above
branches: ['main']
schedule:
- cron: '18 20 * * 3'

jobs:
analyze:
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/update-dependencies.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Update Dependencies

on:
schedule:
- cron: '0 0 * * *'

jobs:
update-dependencies:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18' # 사용하는 Node.js 버전 설정

- name: Install npm-check-updates
run: npm install -g npm-check-updates

- name: Run update dependencies
run: ncu -u

- name: Install updated dependencies
run: npm install

- name: Commit and push changes
run: |
git config --local user.name "GitHub Actions"
git config --local user.email "[email protected]"
git add package.json
git commit -m "Update dependencies"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit fec2ed8

Please sign in to comment.