From 701da01991dc47cd6c50f83a72080b6f1c5a7152 Mon Sep 17 00:00:00 2001 From: Kevin Fischer Date: Fri, 23 Oct 2020 11:25:19 +0900 Subject: [PATCH] Change patch file name to "Branch Name".patch --- .github/workflows/create-patch.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/create-patch.yml b/.github/workflows/create-patch.yml index 2b4ad36ac3..9f09e9989c 100644 --- a/.github/workflows/create-patch.yml +++ b/.github/workflows/create-patch.yml @@ -22,11 +22,14 @@ jobs: git config --global user.email "$AUTHOR_EMAIL" git config --global user.name "$AUTHOR_NAME" git commit -m "Patch for `cat .branch-name`" - git format-patch development..HEAD --stdout -k > patch.diff + PATCH_FILE=`cat .branch-name | sed 's/\//_/g'`.patch # Replace forward slash in branch name with _ + git format-patch development..HEAD --stdout -k > $PATCH_FILE + echo "::set-output name=PATCH_FILE::$PATCH_FILE" + id: patch-creator env: AUTHOR_EMAIL: ${{ github.event.head_commit.author.email }} AUTHOR_NAME: ${{ github.event.head_commit.author.name }} - uses: actions/upload-artifact@v2 with: name: patch - path: patch.diff + path: ${{ steps.patch-creator.outputs.PATCH_FILE }}