From b394b402b63b55db1ab1eb4551adbea7f6836dc7 Mon Sep 17 00:00:00 2001 From: Yuta Kasai Date: Wed, 11 Oct 2023 10:28:30 +0900 Subject: [PATCH] Commit generated code automatically (#523) * Commit generated code to master branch automatically * commit message --- .github/workflows/diff-check.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/diff-check.yml b/.github/workflows/diff-check.yml index 59ee3543..a6ea99ce 100644 --- a/.github/workflows/diff-check.yml +++ b/.github/workflows/diff-check.yml @@ -55,13 +55,10 @@ 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" - - 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" + git commit -m "Codes are generated by openapi generator" + git push origin master env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}