From 615fb448a25a998af88b454f11e21fd9f5413e32 Mon Sep 17 00:00:00 2001 From: softprops Date: Tue, 17 Sep 2019 23:21:28 +0900 Subject: [PATCH] changelog --- CHANGELOG.md | 17 +++++++++++++++++ README.md | 4 ++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3ff364c1d..625371ef7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,23 @@ GitHub's api doesn't explicitly have a way of fetching a draft release by tag name which caused draft releases to appear as separate releases when used in a build matrix. This is now fixed. +* Add support for newline-delimited asset list [#18](https://github.com/softprops/action-gh-release/pull/18) + +GitHub actions inputs don't inherently support lists of things and one might like to append a list of files to include in a release. Previously this was possible using a comma-delimited list of asset path patterns to upload. You can now provide these as a newline delimieted list for better readability + +```yaml + - name: Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + files: | + filea.txt + fileb.txt + filec.txt + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +``` + --- ## 0.1.1 diff --git a/README.md b/README.md index 0719dd9b0..413028398 100644 --- a/README.md +++ b/README.md @@ -94,7 +94,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} ``` -Below is an example of uploading more than one asset. +Below is an example of uploading more than one asset with a GitHub release ```yaml name: Main @@ -115,7 +115,7 @@ jobs: uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') with: - files: |- + files: | Release.txt LICENSE env: