Update ADRs #14418
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 <example@example.com> | |
committer: shopwareBot <example@example.com> | |
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 <example@example.com> | |
committer: shopwareBot <example@example.com> | |
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)' |