Skip to content

Commit f6268d9

Browse files
bojanrajhCopilot
andauthored
feat: sync references, update checkout action (#2220)
* feat: sync references, update checkout action * Update .github/workflows/update-adrs.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent af5a54f commit f6268d9

12 files changed

Lines changed: 56 additions & 12 deletions
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#! /usr/bin/env bash
2+
3+
git clone --depth 1 https://github.com/shopware/shopware.git
4+
5+
# delete dirs
6+
rm -r ./resources/references/app-reference/script-reference
7+
8+
# copy contents
9+
cp -r ./shopware/src/Core/DevOps/Resources/generated ./resources/references/app-reference/script-reference
10+
11+
# recover index
12+
git checkout -- resources/references/app-reference/script-reference/index.md
13+
14+
# cleanup
15+
rm -rf ./shopware

.github/workflows/file-format-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jobs:
55
Filenamecheck:
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/checkout@v4
8+
- uses: actions/checkout@v6
99
- shell: bash
1010
run: |
1111
find assets -maxdepth 1 | grep "\.[A-Z]" && echo "ERROR: Ensure file extensions are in lowercase" && exit 1 || echo ""

.github/workflows/markdown-style-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Check out code
14-
uses: actions/checkout@v4
14+
uses: actions/checkout@v6
1515

1616
- uses: denoland/setup-deno@v1
1717
with:

.github/workflows/redirect.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
steps:
1313
- name: Checkout code
14-
uses: actions/checkout@v4
14+
uses: actions/checkout@v6
1515
with:
1616
fetch-depth: 0
1717
ref: ${{ github.head_ref }}

.github/workflows/release-note.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
with:
1414
text: ${{ github.event.release.body }}
1515
- name: Replace \n with \\n
16-
uses: actions/checkout@v4
16+
uses: actions/checkout@v6
1717
- run: |
1818
echo "${{ github.event.release.tag_name }}"
1919
echo "${{ steps.slackify.outputs.text }}"

.github/workflows/reviewdog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
name: Runner
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v4
9+
- uses: actions/checkout@v6
1010

1111
- uses: reviewdog/action-languagetool@v1
1212
with:

.github/workflows/spellcheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
name: Spellcheck
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@v6
1414
- uses: rojopolis/spellcheck-github-actions@0.49.0
1515
name: Spellcheck
1616
with:

.github/workflows/update-adrs.yml

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
create-adr-pull-request:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v4
11+
- uses: actions/checkout@v6
1212

1313
- uses: denoland/setup-deno@v1
1414
with:
@@ -44,10 +44,11 @@ jobs:
4444
delete-branch: true
4545
title: 'Update Architecture Decision Records'
4646
body: 'Mirrored from: [shopware/shopware](https://github.com/shopware/shopware/tree/trunk)'
47+
4748
create-code-pull-request:
4849
runs-on: ubuntu-latest
4950
steps:
50-
- uses: actions/checkout@v4
51+
- uses: actions/checkout@v6
5152
with:
5253
ref: main
5354

@@ -82,3 +83,31 @@ jobs:
8283
delete-branch: true
8384
title: 'Update code guidelines from platform'
8485
body: 'Mirrored from: [shopware/shopware](https://github.com/shopware/shopware/tree/trunk)'
86+
87+
create-references-pull-request:
88+
runs-on: ubuntu-latest
89+
steps:
90+
- uses: actions/checkout@v6
91+
with:
92+
ref: main
93+
94+
- uses: denoland/setup-deno@v1
95+
with:
96+
deno-version: "~1.32"
97+
98+
# sync from shopware/shopware
99+
- run: ./.github/scripts/update-script-references.sh
100+
101+
- uses: peter-evans/create-pull-request@v7
102+
with:
103+
add-paths: |
104+
resources/references/app-reference/*.md
105+
resources/references/app-reference/script-reference/*.md
106+
author: shopwareBot <example@example.com>
107+
committer: shopwareBot <example@example.com>
108+
assignees: Isengo1989, sushmangupta, bojanrajh, kermie
109+
labels: script-references
110+
branch: script-references-update
111+
delete-branch: true
112+
title: 'Update script references from platform'
113+
body: 'Mirrored from: [shopware/shopware](https://github.com/shopware/shopware/tree/trunk)'

.github/workflows/validate-external-links.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
permissions:
1212
issues: write
1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@v6
1515

1616
- name: lychee Link Checker
1717
id: lychee

.github/workflows/version-milestone-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
steps:
1313
- name: Checkout repository
14-
uses: actions/checkout@v4
14+
uses: actions/checkout@v6
1515

1616
- name: Get all open pull requests
1717
id: get_open_prs

0 commit comments

Comments
 (0)