-
Notifications
You must be signed in to change notification settings - Fork 408
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set title and description written in line-openapi PR again (#1123)
originally, line/line-openapi#74 expected to call scripts after calling generate-code.py. However, #1074 calls the scripts after some processes. This results unexpected behavior.... I hope this change fixes it.
- Loading branch information
Showing
1 changed file
with
14 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,19 +50,7 @@ jobs: | |
## Run if diff exists and event is not pull request, and make PR | ||
- if: ${{ github.event_name != 'pull_request' && env.DIFF_IS_EMPTY != 'true' }} | ||
run: | | ||
BRANCH_NAME="update-diff-${{ env.CURRENT_DATETIME }}" | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git checkout -b $BRANCH_NAME | ||
git add line-openapi | ||
git add lib/** | ||
git commit -m "Codes are generated by openapi" | ||
git push origin $BRANCH_NAME | ||
# Determine Change Type via Submodule Script | ||
# Determine Change Type via Submodule Script. This scripts read current uncommited changes. | ||
CHANGE_TYPE=$(npx zx ./line-openapi/tools/determine-change-type.mjs) | ||
echo "Determined change type: $CHANGE_TYPE" | ||
|
@@ -79,6 +67,19 @@ jobs: | |
BODY="⚠Reviewer: Please edit this description to include relevant information about the changes.⚠" | ||
fi | ||
# Create PR | ||
BRANCH_NAME="update-diff-${{ env.CURRENT_DATETIME }}" | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git checkout -b $BRANCH_NAME | ||
git add line-openapi | ||
git add lib/** | ||
git commit -m "Codes are generated by openapi" | ||
git push origin $BRANCH_NAME | ||
gh pr create -B ${{ github.ref_name }} -H $BRANCH_NAME -t "$TITLE" -b "$BODY" --label "line-openapi-update" | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |