Update repository data #35748
This file contains 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: Update repository data | |
on: | |
workflow_dispatch: | |
schedule: | |
# every 42 minutes during the day in CA | |
- cron: "*/42 0-3,12-23 * * *" | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
repo-data: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
id: checkout | |
uses: actions/checkout@v4 | |
- name: Update local repository data | |
id: pipeline | |
run: ./.github/bin/repos/pipeline.sh | |
- name: Commit updated data | |
id: commit | |
env: | |
DATA_FILE: ${{ steps.pipeline.outputs.data_file }} | |
run: | | |
git config user.name "Cal-ITP Bot" | |
git config user.email "[email protected]" | |
git add ${DATA_FILE} | |
timestamp=$(date -u) | |
git commit -m "chore(data): updated ${timestamp}" || exit 0 | |
git push |