From 515c94471b0271204921cfd5d25608a236295c63 Mon Sep 17 00:00:00 2001 From: Yuta Kasai Date: Fri, 13 Oct 2023 11:53:36 +0900 Subject: [PATCH 1/2] Revert "Commit generated code automatically (#523)" This reverts commit b394b402b63b55db1ab1eb4551adbea7f6836dc7. --- .github/workflows/diff-check.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/diff-check.yml b/.github/workflows/diff-check.yml index a6ea99ce..59ee3543 100644 --- a/.github/workflows/diff-check.yml +++ b/.github/workflows/diff-check.yml @@ -55,10 +55,13 @@ jobs: run: | git config user.name github-actions git config user.email github-actions@github.com + git checkout -b update-diff-${{ env.CURRENT_DATETIME }} git add line-openapi git add src/** - git commit -m "Codes are generated by openapi generator" - git push origin master + git commit -m "Codes are generated by openapi" + + git push origin update-diff-${{ env.CURRENT_DATETIME }} + gh pr create -B ${{ github.ref_name }} -t "Codes are generated by openapi" -b "" --label "line-openapi-update" env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 4b99fb430cde1663db4707849c5acd4a49bf7295 Mon Sep 17 00:00:00 2001 From: Yuta Kasai Date: Fri, 13 Oct 2023 11:54:25 +0900 Subject: [PATCH 2/2] Update diff-check.yml --- .github/workflows/diff-check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/diff-check.yml b/.github/workflows/diff-check.yml index 59ee3543..ac15a21a 100644 --- a/.github/workflows/diff-check.yml +++ b/.github/workflows/diff-check.yml @@ -62,6 +62,6 @@ jobs: git commit -m "Codes are generated by openapi" git push origin update-diff-${{ env.CURRENT_DATETIME }} - gh pr create -B ${{ github.ref_name }} -t "Codes are generated by openapi" -b "" --label "line-openapi-update" + gh pr create -B ${{ github.ref_name }} -t "Codes are generated by openapi generator" -b "" --label "line-openapi-update" env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}