Skip to content
This repository was archived by the owner on Jun 26, 2026. It is now read-only.

Commit 75dbb96

Browse files
committed
Submit a PR instead
1 parent 421854b commit 75dbb96

1 file changed

Lines changed: 27 additions & 12 deletions

File tree

.github/workflows/update-submodule.yml

Lines changed: 27 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Update OrchardCoreContrib.App Submodules
1+
name: Update OrchardCoreContrib.App Submodules
22

33
on:
44
push:
@@ -23,14 +23,29 @@ jobs:
2323
git submodule update --init --recursive
2424
git submodule update --recursive --remote
2525
26-
- name: Commit and push changes
27-
env:
28-
OCC_TOKEN: ${{ secrets.OCC_TOKEN }}
29-
run: |
30-
git config user.name "github-actions[bot]"
31-
git config user.email "github-actions[bot]@users.noreply.github.com"
32-
git add --all
33-
git diff --cached --quiet && exit 0
34-
git commit -m "Update submodules to latest versions"
35-
git remote set-url origin https://x-access-token:${OCC_TOKEN}@github.com/OrchardCoreContrib/OrchardCoreContrib.App.git
36-
git push origin HEAD:main
26+
- name: Create Pull Request
27+
uses: peter-evans/create-pull-request@v7
28+
with:
29+
token: ${{ secrets.OCC_TOKEN }}
30+
commit-message: Update submodules to latest versions
31+
title: Update submodules to latest versions 🔄
32+
body: |
33+
Automated submodule update generated by workflow.
34+
branch: update-submodules
35+
delete-branch: true
36+
base: main
37+
labels: |
38+
dependencies
39+
submodule
40+
41+
# - name: Commit and push changes
42+
# env:
43+
# OCC_TOKEN: ${{ secrets.OCC_TOKEN }}
44+
# run: |
45+
# git config user.name "github-actions[bot]"
46+
# git config user.email "github-actions[bot]@users.noreply.github.com"
47+
# git add --all
48+
# git diff --cached --quiet && exit 0
49+
# git commit -m "Update submodules to latest versions"
50+
# git remote set-url origin https://x-access-token:${OCC_TOKEN}@github.com/OrchardCoreContrib/OrchardCoreContrib.App.git
51+
# git push origin HEAD:main

0 commit comments

Comments
 (0)