From fec2ed8fff4a0befefd0295ef1f20d9dd36e0f44 Mon Sep 17 00:00:00 2001 From: hwangsihu Date: Tue, 13 Aug 2024 12:10:26 +0900 Subject: [PATCH] UPdate workflows --- .github/dependabot.yml | 6 ---- .github/workflows/biome.yml | 2 -- .github/workflows/codeql.yml | 2 -- .github/workflows/update-dependencies.yml | 37 +++++++++++++++++++++++ 4 files changed, 37 insertions(+), 10 deletions(-) delete mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/update-dependencies.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index d1f0d0851..000000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,6 +0,0 @@ -version: 2 -updates: - - package-ecosystem: "npm" - directory: "/" - schedule: - interval: "daily" diff --git a/.github/workflows/biome.yml b/.github/workflows/biome.yml index 2fc5d5c4b..932ac0c27 100644 --- a/.github/workflows/biome.yml +++ b/.github/workflows/biome.yml @@ -5,8 +5,6 @@ on: branches: [ "main" ] pull_request: branches: [ "main" ] - schedule: - - cron: '36 1 * * 6' jobs: biome: diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 2dc504dec..f8d5898d4 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -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: diff --git a/.github/workflows/update-dependencies.yml b/.github/workflows/update-dependencies.yml new file mode 100644 index 000000000..30cc216e4 --- /dev/null +++ b/.github/workflows/update-dependencies.yml @@ -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 "actions@github.com" + git add package.json + git commit -m "Update dependencies" + git push + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}