1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-07 02:02:23 +00:00
gcloud-help/.github/workflows/crawl.yaml
Jason Hall 1799759190
Fix crawl workflow failures
- Update GitHub Actions to latest versions (checkout@v4, setup-go@v5, setup-gcloud@v2)
- Use stable Go version from go.mod
- Fix broken pipe error by consuming all gcloud output in main.go

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-13 21:11:28 -04:00

38 lines
831 B
YAML

name: crawl
on:
workflow_dispatch:
push:
branches: ['main']
paths-ignore: ['README.md']
schedule:
- cron: '0 6 * * *' # Daily at 6 AM
permissions:
contents: write
jobs:
crawl:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 'stable'
- uses: google-github-actions/setup-gcloud@v2
with:
install_components: alpha,beta
- run: |
rm -r gcloud/
./crawl.sh
git config user.name "Automated"
git config user.email "actions@users.noreply.github.com"
git add -A
timestamp=$(date -u)
git commit -m "gcloud: ${timestamp}" || exit 0
git tag $(gcloud version --format=json | jq -r '."Google Cloud SDK"')
git push
git push --tags -f