Skip to content

Commit

Permalink
use tempfile
Browse files Browse the repository at this point in the history
  • Loading branch information
m4rc1e committed Nov 10, 2020
1 parent ddbef46 commit 12acc22
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,17 @@ jobs:
# https://github.com/actions/checkout/issues/290
git fetch --tags --force
TAG_NAME=${GITHUB_REF/refs\/tags\//}
echo "$(git tag -l --format='%(contents)' $TAG_NAME)" > CHANGELOG.md
echo "$(git tag -l --format='%(contents)' $TAG_NAME)" > "${{ runner.temp }}/CHANGELOG.md"
- name: Create GitHub release
id: create_release
# create-release@v1 doesn't support the body arg so we use
# create-release@master instead.
# CS attempt
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body_path: CHANGELOG.md
body_path: "${{ runner.temp }}/CHANGELOG.md"
draft: false
prerelease: false

Expand Down

0 comments on commit 12acc22

Please sign in to comment.