File tree 1 file changed +13
-11
lines changed
1 file changed +13
-11
lines changed Original file line number Diff line number Diff line change 39
39
# # Run if diff exists and event is not pull request, and make PR
40
40
- if : ${{ github.event_name != 'pull_request' && env.DIFF_IS_EMPTY != 'true' }}
41
41
run : |
42
- BRANCH_NAME="update-diff-${{ env.CURRENT_DATETIME }}"
43
-
44
- git config user.name github-actions
45
- git config user.email [email protected]
46
- git checkout -b $BRANCH_NAME
47
-
48
- git add .
49
- git commit -m "Code are generated by openapi generator"
50
-
51
- git push origin $BRANCH_NAME
52
-
42
+ # Determine Change Type via Submodule Script. This scripts read current uncommited changes.
53
43
CHANGE_TYPE=$(npx zx ./line-openapi/tools/determine-change-type.mjs)
54
44
echo "Determined change type: $CHANGE_TYPE"
55
45
66
56
BODY="⚠Reviewer: Please edit this description to include relevant information about the changes.⚠"
67
57
fi
68
58
59
+ # Create PR
60
+ BRANCH_NAME="update-diff-${{ env.CURRENT_DATETIME }}"
61
+
62
+ git config user.name github-actions
63
+ git config user.email [email protected]
64
+ git checkout -b $BRANCH_NAME
65
+
66
+ git add .
67
+ git commit -m "Code are generated by openapi generator"
68
+
69
+ git push origin $BRANCH_NAME
70
+
69
71
gh pr create -B ${{ github.ref_name }} -H $BRANCH_NAME -t "$TITLE" -b "$BODY" --label "line-openapi-update"
70
72
env :
71
73
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments