Automate Repository #3261
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |