From a7ec1765fe8d9e3b3f5c00dae2457123323c872c Mon Sep 17 00:00:00 2001 From: Axorax Date: Sat, 11 Jan 2025 17:36:17 +0600 Subject: [PATCH] update --- .github/workflows/renew-categories.yml | 27 ++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/renew-categories.yml diff --git a/.github/workflows/renew-categories.yml b/.github/workflows/renew-categories.yml new file mode 100644 index 0000000..7454317 --- /dev/null +++ b/.github/workflows/renew-categories.yml @@ -0,0 +1,27 @@ +name: Renew categories + +on: + workflow_dispatch: + +jobs: + run-node-script: + 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: '22' + + - name: Run index.js + run: node index.js + + - name: Commit and push changes + run: | + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + git add . + git commit -m "Renew specific categories" || echo "No changes to commit" + git push