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