mirror of
https://github.com/rehlds/rehlds.github.io.git
synced 2025-02-07 18:52:15 +03:00
31 lines
724 B
YAML
31 lines
724 B
YAML
name: Update Repositories file
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: "0 0 1 * *"
|
|
push:
|
|
paths:
|
|
- scripts/fetchRepositories.ts
|
|
|
|
jobs:
|
|
update-repositories:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
OUTPUT_PATH: static/repositories.json
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: oven-sh/setup-bun@v2
|
|
|
|
- name: Update repositories file
|
|
run: bun scripts/fetchRepositories.ts
|
|
|
|
- name: Commit and push changes
|
|
run: |
|
|
git config --local user.email "action@github.com"
|
|
git config --local user.name "GitHub Action"
|
|
git add $OUTPUT_PATH
|
|
git commit -m "Update $OUTPUT_PATH" || echo "No changes to commit"
|
|
git push
|