Build README #22776
This file contains hidden or 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: Build README | |
| on: | |
| push: | |
| branches: | |
| - 'source' | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '11 */2 * * *' | |
| jobs: | |
| test: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Check out repository code | |
| uses: actions/checkout@v5 | |
| - name: Build README | |
| run: ./populate.sh | |
| env: | |
| TIME_API_URL: ${{ secrets.TIME_API_URL }} | |
| TIME_API_KEY: ${{ secrets.TIME_API_KEY }} | |
| - name: Push to source | |
| run: | | |
| git config --global user.name "github-actions" | |
| git config --global user.email "actions@github.com" | |
| git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" | |
| git fetch origin source || true | |
| git add -A | |
| git commit -m "Build #$GITHUB_RUN_ID" && git push || true |