Skip to content

Automate Repository #3219

Automate Repository

Automate Repository #3219

Workflow file for this run

name: Automate Repository
on:
schedule:
- cron: "0 * * * *" # Run every hour
workflow_dispatch:
jobs:
auto:
runs-on: ubuntu-latest
name: "Automate Repository"
steps:
- uses: actions/checkout@v3
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- name: Small Language Patch
run: deno run --allow-read --allow-write Languages.patch.ts
- name: Update README and related files
run: deno run --allow-read --allow-write --allow-env --allow-net calculate.ts
env:
API_KEY: ${{ secrets.API_KEY }}
- name: Format Languages.ts
run: deno fmt Languages.ts
- name: Commit changes
run: |
git config --global user.name "GitHub Action"
git config --global user.email "[email protected]"
git add "*.md" "*.js" "*.ts" "Languages.ts"
git commit -m "Automate: Apply language patch and update files" || true
git push || true