File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -22,11 +22,14 @@ jobs:
22
22
git config --global user.email "$AUTHOR_EMAIL"
23
23
git config --global user.name "$AUTHOR_NAME"
24
24
git commit -m "Patch for `cat .branch-name`"
25
- git format-patch development..HEAD --stdout -k > patch.diff
25
+ PATCH_FILE=`cat .branch-name | sed 's/\//_/g'`.patch # Replace forward slash in branch name with _
26
+ git format-patch development..HEAD --stdout -k > $PATCH_FILE
27
+ echo "::set-output name=PATCH_FILE::$PATCH_FILE"
28
+ id : patch-creator
26
29
env :
27
30
AUTHOR_EMAIL : ${{ github.event.head_commit.author.email }}
28
31
AUTHOR_NAME : ${{ github.event.head_commit.author.name }}
29
32
- uses : actions/upload-artifact@v2
30
33
with :
31
34
name : patch
32
- path : patch.diff
35
+ path : ${{ steps. patch-creator.outputs.PATCH_FILE }}
You can’t perform that action at this time.
0 commit comments