forked from graphql/graphql.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (37 loc) · 1.08 KB
/
schedule.yml
File metadata and controls
43 lines (37 loc) · 1.08 KB
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
40
41
42
43
on:
workflow_dispatch:
schedule:
- cron: "0 0,12 * * *" # on midnight and noon
jobs:
check:
if: github.ref == 'refs/heads/source'
uses: ./.github/workflows/check.yml
sync:
runs-on: ubuntu-latest
needs: check
if: github.ref == 'refs/heads/source'
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: the-guild-org/shared-config/setup@main
name: setup env
with:
packageManager: pnpm
workingDirectory: ./
- name: Prebuild
run: pnpm prebuild
env:
GOOGLE_CALENDAR_API_KEY: ${{ secrets.GOOGLE_CALENDAR_API_KEY }}
- name: Sync conference data
if: false # disabled until next conference
run: |
tsx scripts/sync-sched/sync.ts --year 2025
env:
SCHED_ACCESS_TOKEN_2025: ${{ secrets.SCHED_ACCESS_TOKEN_2025 }}
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
file_pattern: "scripts/**/*"
commit_message: "Run sync scripts"