-
Notifications
You must be signed in to change notification settings - Fork 259
84 lines (72 loc) · 2.8 KB
/
update-adrs.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: Update ADRs
on:
workflow_dispatch:
schedule:
- cron: 0 */3 * * *
jobs:
create-adr-pull-request:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: "~1.32"
# sync from shopware/shopware
- run: ./.github/scripts/update-adrs.sh
# run gitbook -> vitepress migration script
- run: ./.github/scripts/migrate.sh ./resources/references/adr/
# migrate links (.md -> .html)
- name: Migrate links
uses: addnab/docker-run-action@v3
with:
image: php:8.0
options: -v ${{ github.workspace }}:/www --name docs-php
run: cd /www && find ./resources/references/adr/ -name '*.md' -exec php ./.github/scripts/migrate.php {} +
- run: rm semicolon_delimited_script || echo "semicolon_delimited_script does not exist anymore"
- uses: peter-evans/create-pull-request@v4
with:
add-paths: |
resources/references/adr/*.md
assets/adr/
index.md
author: shopwareBot <[email protected]>
committer: shopwareBot <[email protected]>
assignees: Isengo1989, sushmangupta, bojanrajh
labels: adr
branch: adr-reference-update
delete-branch: true
title: 'Update Architecture Decision Records'
body: 'Mirrored from: [shopware/shopware](https://github.com/shopware/shopware/tree/trunk)'
create-code-pull-request:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: main
- uses: denoland/setup-deno@v1
with:
deno-version: "~1.32"
# sync from shopware/shopware
- run: ./.github/scripts/update-code-guidelines.sh
# run gitbook -> vitepress migration script
- run: ./.github/scripts/migrate.sh ./resources/guidelines/code/core/
# migrate links (.md -> .html)
- name: Migrate links
uses: addnab/docker-run-action@v3
with:
image: php:8.0
options: -v ${{ github.workspace }}:/www --name docs-php
run: cd /www && find ./resources/guidelines/code/core/ -name '*.md' -exec php ./.github/scripts/migrate.php {} +
- uses: peter-evans/create-pull-request@v4
with:
add-paths: |
resources/guidelines/code/core/*.md
index.md
author: shopwareBot <[email protected]>
committer: shopwareBot <[email protected]>
assignees: Isengo1989, sushmangupta, bojanrajh, kermie
labels: code-guidelines
branch: code-guidelines-update
delete-branch: true
title: 'Update code guidelines from platform'
body: 'Mirrored from: [shopware/shopware](https://github.com/shopware/shopware/tree/trunk)'