-
Notifications
You must be signed in to change notification settings - Fork 39
52 lines (41 loc) · 1.33 KB
/
screenshot_updater.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
42
43
44
45
46
47
48
49
50
51
52
name: Screenshot Updater
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
permissions: read-all
jobs:
preprod-check:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- name: Generate new screenshots
run: ./scripts/generate_screenshots.sh pre-prod
staging-check:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- name: Generate new screenshots
run: ./scripts/generate_screenshots.sh staging
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- name: Generate new screenshots
run: ./scripts/generate_screenshots.sh prod
- name: Push changes
run: |
if [[ $(git status --porcelain) ]]; then
git config user.name "Rapidfort Readme Bot"
git config user.email "[email protected]"
git add . && git commit -am "Update screenshots for images via script" --signoff && git push --force
fi