File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 27
27
- name : initial state
28
28
run : |
29
29
git submodule status
30
+ short_sha=$(git submodule status | grep -A 1 _notebooks | cut -c1-8)
31
+ echo "SHA_ACTUAL=$short_sha" >> $GITHUB_ENV
30
32
# Skip smudge - We'll download binary files later in a faster batch
31
33
git lfs install --skip-smudge
32
34
- name : update submodules
@@ -41,10 +43,10 @@ jobs:
41
43
git status
42
44
43
45
short_sha=$(git submodule status | grep -A 1 _notebooks | cut -c1-8)
44
- echo "SHA_SHORT =$short_sha" >> $GITHUB_ENV
46
+ echo "SHA_LATEST =$short_sha" >> $GITHUB_ENV
45
47
46
48
- name : Create Pull Request
47
- if : github.event_name != 'pull_request'
49
+ if : ${{ github.event_name != 'pull_request' && env.SHA_ACTUAL != env.SHA_LATEST }}
48
50
uses : peter-evans/create-pull-request@v5
49
51
with :
50
52
title : " docs: update ref to latest tutorials"
59
61
# the PR's body/content
60
62
body : >
61
63
**This is automated update with the latest lighting tutorials!**
64
+
62
65
The target commit in the [publication](https://github.com/Lightning-AI/tutorials/tree/publication)
63
- branch is [${{ env.SHA_SHORT }}](https://github.com/Lightning-AI/tutorials/commit/${{ env.SHA_SHORT }}).
66
+ branch is [${{ env.SHA_LATEST }}](https://github.com/Lightning-AI/tutorials/commit/${{ env.SHA_LATEST }}).
64
67
65
68
Before proceeding further double check that the PR include only submodule's head update.
66
69
Eventually some additional adjustments in lightning docs may be needed.
You can’t perform that action at this time.
0 commit comments