forked from hackforla/website
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 1.11 KB
/
schedule-daily-1100.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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/git-auto-commit-action@v5.0.1
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 <hackforla-bot@hackforla.org>