File tree Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Original file line number Diff line number Diff line change 3939 # # Run if diff exists and event is not pull request, and make PR
4040 - if : ${{ github.event_name != 'pull_request' && env.DIFF_IS_EMPTY != 'true' }}
4141 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.
5343 CHANGE_TYPE=$(npx zx ./line-openapi/tools/determine-change-type.mjs)
5444 echo "Determined change type: $CHANGE_TYPE"
5545
6656 BODY="⚠Reviewer: Please edit this description to include relevant information about the changes.⚠"
6757 fi
6858
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+
6971 gh pr create -B ${{ github.ref_name }} -H $BRANCH_NAME -t "$TITLE" -b "$BODY" --label "line-openapi-update"
7072 env :
7173 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments