-
Notifications
You must be signed in to change notification settings - Fork 4
41 lines (36 loc) · 993 Bytes
/
generate.yaml
File metadata and controls
41 lines (36 loc) · 993 Bytes
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
on:
push:
branches: [ main ]
workflow_dispatch:
concurrency:
group: generate-jldec-uk
jobs:
generate:
runs-on: ubuntu-latest
env:
DOMAIN: jldec.uk
steps:
- name: checkout source repo
uses: actions/checkout@v4
- name: checkout destination repo under ./out
uses: actions/checkout@v4
with:
repository: jldec/jldec.uk
token: ${{ secrets.GH_TOKEN }}
path: out
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: pnpm/action-setup@v4
with:
version: 9
- name: generate output
run: |
pnpm install
pnpm generate
cd out
git config user.email "jldec@ciaosoft.com"
git config user.name "cloudflare-pages-test generate action"
git add -A
if ! git diff-index --quiet HEAD ; then git commit -m 'https://github.com/jldec/cloudflare-pages-test/actions/runs/${{ github.run_id }}' && git push ; fi
echo done