Skip to content

Update Projects

Update Projects #206

name: Update Projects
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
update-projects:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.24'
- name: Prepare Go module and install dependencies
run: |
if [ ! -f go.mod ]; then
go mod init tempmod
fi
go mod tidy
- name: Run update_projects.go
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
go run scripts/update_projects.go
- name: Commit and push if changed
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add profile/README.md
git diff --cached --quiet || git commit -m 'chore: update projects section [auto]'
git push