Skip to content

Sync CNCF Projects from Landscape #89

Sync CNCF Projects from Landscape

Sync CNCF Projects from Landscape #89

name: Sync CNCF Projects from Landscape
on:
schedule:
# Run daily at 03:00 UTC
- cron: '0 3 * * *'
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
sync-projects:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Go
uses: actions/setup-go@v6
with:
go-version: '1.24'
- name: Build and run extract-projects tool
run: |
cd util/extract-projects
go mod tidy
go run . ../data/cncf-projects.yaml
- name: Commit and push changes
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add util/data/cncf-projects.yaml
if git diff --cached --quiet; then
echo "No changes to CNCF projects"
exit 0
fi
git commit -m "chore: sync CNCF projects from landscape"
git push origin main