Skip to content

Commit 8c0a197

Browse files
committed
Trying another change
1 parent 441acd4 commit 8c0a197

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

.github/workflows/build-and-release.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,7 @@ jobs:
9393
echo "COMMIT_SHORT_SHA=$calculatedSha" >> $GITHUB_ENV
9494
9595
- name: Archive release
96-
uses: thedoctor0/zip-release@master
97-
id: zip-binaries
98-
with:
99-
type: zip
100-
directory: bin
101-
filename: ${{ env.RELEASE_FILENAME }}-${{ env.RELEASE_VERSION }}.zip
96+
run: zip -r bin/${{ env.RELEASE_FILENAME }}-${{ env.RELEASE_VERSION }}.zip bin/
10297

10398
- name: Release with notes
10499
uses: softprops/action-gh-release@v1
@@ -127,7 +122,7 @@ jobs:
127122
uses: tsickert/[email protected]
128123
with:
129124
webhook-url: ${{ secrets.DISCORD_WEBHOOK_URL }}
130-
embed-title: '🎉 New update on `master` branch: ${{ fromJson(steps.get_pr_data.outputs.result).title }}'
131-
embed-description: ${{ fromJson(steps.get_pr_data.outputs.result).body }}
132-
embed-url: ${{ fromJson(steps.get_pr_data.outputs.result).html_url }}
125+
embed-title: ${{ steps.get_pr_data.outputs.result && fromJson(steps.get_pr_data.outputs.result).title || '🎉 New update on `master` branch' }}
126+
embed-description: ${{ steps.get_pr_data.outputs.result && fromJson(steps.get_pr_data.outputs.result).body || 'No description provided.' }}
127+
embed-url: ${{ steps.get_pr_data.outputs.result && fromJson(steps.get_pr_data.outputs.result).html_url || github.event.compare }}
133128

0 commit comments

Comments
 (0)