-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (32 loc) · 1.03 KB
/
generate-video.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
40
41
name: Generate Video on Trello Changes
on:
repository_dispatch:
types: [trigger_build]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v3
- name: Switch to generated-videos branch
run: |
git checkout -b generated-videos || git checkout generated-videos
# - name: Pull latest changes
# run: |
# git pull origin generated-videos --rebase
- name: Run the video generation script
run: |
echo "Generating video based on Trello changes..."
npm install
npm run build
- name: Set up Git user
run: |
git config --global user.email "[email protected]"
git config --global user.name "Mohammed Adil Sharif"
- name: Add new generated video
run: |
git add out/video.mp4
git commit -m "Add new generated video"
- name: Force push to generated-videos branch
run: |
git push origin generated-videos --force