From 48619e46d082118b84c5b4a15b854b6569e35f0f Mon Sep 17 00:00:00 2001 From: snus xD Date: Sun, 20 Jul 2025 17:03:23 +0500 Subject: [PATCH] auto-sorting --- .github/workflows/main.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..9292ff4 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,35 @@ +name: sorting + +on: + push: + branches: [ main ] + +jobs: + run-scripts: + runs-on: ubuntu-latest + + steps: + - name: checkout + uses: actions/checkout@v4 + + - name: setup node + uses: actions/setup-node@v4 + with: + node-version: '20' + + - name: requirments + run: npm ci + + - name: scripts + run: | + cd scripts + npx tsx write.ts + npx tsx sort.ts + cd .. + + - name: upload zip + uses: actions/upload-artifact@v4 + with: + name: sort-archive-${{ github.sha }} + path: ./sort.zip + retention-days: 30