Ultralytics Refactor https://ultralytics.com/actions (#292)
Automated merge of Ultralytics Code Refactor
This commit is contained in:
@@ -17,11 +17,11 @@ jobs:
|
||||
if: github.repository == 'ultralytics/actions' && github.actor == 'glenn-jocher'
|
||||
name: Publish
|
||||
runs-on: ubuntu-latest
|
||||
environment: # for GitHub Deployments tab
|
||||
environment: # for GitHub Deployments tab
|
||||
name: Release - PyPI
|
||||
url: https://pypi.org/p/ultralytics-actions
|
||||
permissions:
|
||||
id-token: write # for PyPI trusted publishing
|
||||
id-token: write # for PyPI trusted publishing
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
@@ -103,7 +103,7 @@ jobs:
|
||||
webhook: ${{ secrets.SLACK_WEBHOOK_URL_YOLO }}
|
||||
payload: |
|
||||
text: "<!channel> GitHub Actions success for ${{ github.workflow }} ✅\n\n\n*Repository:* https://github.com/${{ github.repository }}\n*Action:* https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}\n*Author:* ${{ github.actor }}\n*Event:* NEW `${{ github.repository }} ${{ steps.check_pypi.outputs.current_tag }}` pip package published 😃\n*Job Status:* ${{ job.status }}\n*Pull Request:* <https://github.com/${{ github.repository }}/pull/${{ env.PR_NUMBER }}> ${{ env.PR_TITLE }}\n"
|
||||
- name: Notify on Slack (Failure)
|
||||
- name: Notify on Slack (Failure)
|
||||
if: failure()
|
||||
uses: slackapi/[email protected]
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user