-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (33 loc) · 1.05 KB
/
ingest-tutorial.yml
File metadata and controls
40 lines (33 loc) · 1.05 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
name: Ingest Tutorial Content
on:
push:
paths:
- 'uploads/**.zip'
workflow_dispatch:
jobs:
process-upload:
runs-on: ubuntu-latest
permissions:
contents: write # Necessary to push the generated files back
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
- name: Install Script Dependencies
# Installing dependencies for the processor script dynamically
run: npm install fs-extra unzipper
- name: Run Processor Script
run: node scripts/process-tutorial.js
- name: Commit and Push Changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "🤖 Auto-generate tutorial environment [skip ci]: ${{ github.event.head_commit.message }}"
branch: ${{ github.ref }}
# Ensure we track the new folders
# file_pattern: |
# tutorials/
# .devcontainer/
# uploads/