Skip to content

Commit

Permalink
action: use multi-line env to pass release tarballs
Browse files Browse the repository at this point in the history
Signed-off-by: Peng Tao <bergwolf@hyper.sh>
  • Loading branch information
bergwolf committed May 13, 2022
1 parent 1eb4a81 commit 9a70aa7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,10 @@ jobs:
path: nydus-tarball
- name: prepare release env
run: |
echo "tarballs<<EOF" >> $GITHUB_ENV
cnt=0
for I in $(ls nydus-tarball);do cnt=$((cnt+1)); echo "tarball${cnt}=nydus-tarball/${I}" >> $GITHUB_ENV; done
for I in $(ls nydus-tarball);do cnt=$((cnt+1)); echo "nydus-tarball/${I}" >> $GITHUB_ENV; done
echo "EOF" >> $GITHUB_ENV
tag=$(echo $GITHUB_REF | cut -d/ -f3-)
echo "tag=${tag}" >> $GITHUB_ENV
cat $GITHUB_ENV
Expand All @@ -204,6 +206,4 @@ jobs:
name: "Nydus Image Service ${{ env.tag }}"
generate_release_notes: true
files: |
${{ env.tarball1 }}
${{ env.tarball2 }}
${{ env.tarball3 }}
${{ env.tarballs }}

0 comments on commit 9a70aa7

Please sign in to comment.