File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 1
1
name : Update Lotus Version
2
2
3
3
on :
4
- workflow_dispatch : # Allows manual trigger
4
+ workflow_dispatch :
5
5
pull_request :
6
- types : [opened, reopened]
6
+ types : [opened, reopened, synchronize ]
7
7
8
8
jobs :
9
9
update-version :
24
24
25
25
# Extract the tag name
26
26
TAG_NAME=$(echo "$RELEASE_INFO" | jq -r .tag_name)
27
-
27
+
28
28
# Extract version number (remove 'v' prefix)
29
29
LATEST_VERSION=$(echo $TAG_NAME | sed 's/^v//')
30
30
34
34
- name : Run update script
35
35
run : |
36
36
node update-versions.js ${{ env.LATEST_VERSION }}
37
+
38
+ - name : Check for changes
39
+ id : git-check
40
+ run : |
41
+ git diff --exit-code || echo "CHANGES=true" >> $GITHUB_ENV
37
42
38
43
- name : Create Pull Request
44
+ if : env.CHANGES == 'true'
39
45
uses : peter-evans/create-pull-request@v5
40
46
with :
41
47
commit-message : ' Chore: update Lotus version references to ${{ env.LATEST_VERSION }}'
You can’t perform that action at this time.
0 commit comments