Schedule Daily 1100 #192
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: Schedule Daily 1100 | |
# Run this action every day at 3am Pacific (11 am UTC) | |
on: | |
schedule: | |
- cron: '0 11 * * *' | |
workflow_dispatch: | |
jobs: | |
github_data: | |
runs-on: ubuntu-latest | |
if: github.repository == 'hackforla/website' | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.HACKFORLA_BOT_PA_TOKEN }} | |
- name: GitHub Action for install npm dependencies | |
uses: bahmutov/npm-install@v1 | |
with: | |
working-directory: ./github-actions/trigger-schedule/github-data | |
- name: Generate github-data.json | |
env: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
run: node github-actions/trigger-schedule/github-data/get-project-data.js | |
- name: Auto Commit | |
uses: stefanzweifel/[email protected] | |
with: | |
# Optional glob pattern of files which should be added to the commit | |
file_pattern: _data/external/github-data.json | |
commit_message: Update contributor and language data | |
# Commit author settings | |
commit_author: GitHub Actions Bot <[email protected]> |