Skip to content

Commit

Permalink
chore: update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
gary-Shen committed Feb 5, 2024
1 parent a89c1c7 commit d3481c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,18 +164,10 @@ jobs:
# ====================== post release ======================

- name: Webhook message from workflow_dispatch
if: ${{ github.event_name == 'workflow_dispatch' }}
uses: joelwmale/webhook-action@master
with:
url: ${{ secrets.WEBHOOK_URL }}
headers: '{"Content-Type": "application/json"}'
body: '{"msgtype":"markdown","markdown":{"content":"${{ env.RELEASE_NOTES }}## Frontend changelog \n${{ inputs.changelog }} \nCheck it out now \ud83d\udc49\ud83c\udffb [v${{ env.NEXT_VERSION }}](${{ env.PYPI_URL }})"}}'

- name: Webhook message from release
if: ${{ github.event_name != 'workflow_dispatch'}}
uses: joelwmale/webhook-action@master
env:
CHANGELOG: ${{ github.event.inputs.changelog != '' && format('{0}\n\n', github.event.inputs.changelog) || '' }}
with:
url: ${{ secrets.WEBHOOK_URL }}
headers: '{"Content-Type": "application/json"}'
body: '{"msgtype":"markdown","markdown":{"content":"${{ env.RELEASE_NOTES }}Check it out now \ud83d\udc49\ud83c\udffb [v${{ env.NEXT_VERSION }}](${{ env.PYPI_URL }})"}}'

body: '{"msgtype":"markdown","markdown":{"content":"${{ env.RELEASE_NOTES }}## Frontend changelog \n${{ env.CHANGELOG }}Check it out now \ud83d\udc49\ud83c\udffb [v${{ env.NEXT_VERSION }}](${{ env.PYPI_URL }})"}}'
2 changes: 1 addition & 1 deletion .github/workflows/trigger_from_labelu_kit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
- name: Commit .VERSION file
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: '${{ inputs.release_type }}: Update frontend from labelu-kit. See details in [release note](https://github.com/opendatalab/labelU-Kit/releases/tag/${{ inputs.version }})'
commit_message: '${{ inputs.release_type }}: Update frontend from labelu-kit. See details in [release notes](https://github.com/opendatalab/labelU-Kit/releases/tag/${{ inputs.version }})'
file_pattern: .VERSION

- name: Trigger release workflow
Expand Down

0 comments on commit d3481c6

Please sign in to comment.