From d6380990f360a8f25d5a8fbe91c76ea3865e6436 Mon Sep 17 00:00:00 2001 From: Anh Tran Date: Thu, 9 Jan 2025 11:46:21 +0700 Subject: [PATCH] Version 1.0.0 --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b36bef6..822d5fd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,7 +15,7 @@ jobs: uses: actions/checkout@v2 - name: Create zip run: | - name=$(basename -s .git $(git config --get remote.origin.url)) + name=${{ github.event.repository.name }} git archive -o $name.zip --prefix=$name/ HEAD - name: Release uses: softprops/action-gh-release@v2 @@ -27,4 +27,5 @@ jobs: - name: Notify Slack run: | tag=$(git describe --tags `git rev-list --tags --max-count=1`) + name=${{ github.event.repository.name }} curl -X POST --data-urlencode "payload={\"channel\": \"#meta-box\", \"username\": \"Bot\", \"text\": \"New version $tag for $name has been just released!\", \"icon_emoji\": \":tada:\"}" ${{ secrets.SLACK_WEBHOOK }} \ No newline at end of file