We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 407344c commit 7fa7db2Copy full SHA for 7fa7db2
.github/workflows/create-patch.yml
@@ -22,11 +22,14 @@ jobs:
22
git config --global user.email "$AUTHOR_EMAIL"
23
git config --global user.name "$AUTHOR_NAME"
24
git commit -m "Patch for `cat .branch-name`"
25
- 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 _
26
+ git format-patch development..HEAD --stdout -k > $PATCH_FILE
27
+ echo "::set-output name=PATCH_FILE::$PATCH_FILE"
28
+ id: patch-creator
29
env:
30
AUTHOR_EMAIL: ${{ github.event.head_commit.author.email }}
31
AUTHOR_NAME: ${{ github.event.head_commit.author.name }}
32
- uses: actions/upload-artifact@v2
33
with:
34
name: patch
- path: patch.diff
35
+ path: ${{ steps.patch-creator.outputs.PATCH_FILE }}
0 commit comments