vibecode shit
This commit is contained in:
23
.github/workflows/main.yml
vendored
23
.github/workflows/main.yml
vendored
@@ -12,44 +12,41 @@ permissions:
|
|||||||
jobs:
|
jobs:
|
||||||
run-scripts:
|
run-scripts:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: checkout
|
- name: checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: setup
|
- name: setup
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '20'
|
node-version: '20'
|
||||||
|
|
||||||
- name: requirments
|
- name: requirments
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
||||||
- name: scripts
|
- name: scripts
|
||||||
working-directory: ./scripts
|
working-directory: ./scripts
|
||||||
run: |
|
run: |
|
||||||
|
rm -rf ../_sprites/unready
|
||||||
npx tsx write.ts
|
npx tsx write.ts
|
||||||
npx tsx sort.ts
|
npx tsx sort.ts
|
||||||
rm -rf ../_sprites/unready
|
|
||||||
npx tsx unready.ts
|
npx tsx unready.ts
|
||||||
|
|
||||||
- name: commit changes
|
- name: commit changes
|
||||||
run: |
|
run: |
|
||||||
git config --local user.email "action@github.com"
|
git config --local user.email "action@github.com"
|
||||||
git config --local user.name "GitHub Action"
|
git config --local user.name "GitHub Action"
|
||||||
git add ./_sprites/unready
|
git add -A .
|
||||||
git commit -m "updated unready list" || exit 0
|
git commit -m "auto: update sprites and data" || exit 0
|
||||||
git add ./scripts/data.json
|
|
||||||
git commit -m "updated data" || exit 0
|
|
||||||
git push
|
git push
|
||||||
|
|
||||||
- name: upload
|
- name: upload
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: sorted
|
name: sorted
|
||||||
path: ./_sprites/sorted
|
path: ./_sprites/sorted
|
||||||
retention-days: 15
|
retention-days: 15
|
||||||
|
|
||||||
- name: remove temp sorted folder
|
- name: remove temp sorted folder
|
||||||
run: rm -rf ./_sprites/sorted
|
run: rm -rf ./_sprites/sorted
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user