Skip to content

Commit

Permalink
ci: fix publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas1312 committed Nov 10, 2023
1 parent 6b627c2 commit fcdb86a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,24 +58,20 @@ jobs:
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

- name: Get release body
id: get_release
run: echo ::set-output name=changelog::$(echo "${{ github.event.release.body }}" | sed -n '/# Changelog/,$p')

- name: Slack notification
id: slack
if: success()
uses: slackapi/[email protected]
with:
payload: |
{
"text": "Kili SDK ${{ github.ref_name }} released!\nGitHub: https://github.com/kili-technology/kili-python-sdk/releases\nPyPI: https://pypi.org/project/kili/\nChangelog: ${{ steps.get_release.outputs.changelog }}",
"text": "Kili SDK ${{ github.ref_name }} released!\nGitHub: https://github.com/kili-technology/kili-python-sdk/releases\nPyPI: https://pypi.org/project/kili/",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Kili SDK ${{ github.ref_name }} released!\nGitHub: https://github.com/kili-technology/kili-python-sdk/releases\nPyPI: https://pypi.org/project/kili/\nChangelog: ${{ steps.get_release.outputs.changelog }}""
"text": "Kili SDK ${{ github.ref_name }} released!\nGitHub: https://github.com/kili-technology/kili-python-sdk/releases\nPyPI: https://pypi.org/project/kili/"
}
}
]
Expand Down

0 comments on commit fcdb86a

Please sign in to comment.