From 230aa4bf78cdc4831bad883acabfdd971c49c2e5 Mon Sep 17 00:00:00 2001 From: Youssef sellami Date: Mon, 6 Dec 2021 22:34:35 +0100 Subject: [PATCH] fixed issue cannot call github event data from shell script --- .github/workflows/cd.yml | 2 +- publish-assets.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 2f874cc..56eff21 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -27,6 +27,6 @@ jobs: - name: Upload assets to release run: | chmod +x ./publish-assets.sh - ./publish-assets.sh + ./publish-assets.sh ${{ github.event.release.tag_name }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/publish-assets.sh b/publish-assets.sh index f4c3b2e..3f7c76d 100644 --- a/publish-assets.sh +++ b/publish-assets.sh @@ -7,4 +7,4 @@ for asset in *.snupkg do assets+=("$asset") done -gh release upload ${{ github.event.release.tag_name }} "${assets[@]}" \ No newline at end of file +gh release upload $1 "${assets[@]}" \ No newline at end of file