diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5e121d3..812b73f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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: " 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:* ${{ env.PR_TITLE }}\n" - - name: Notify on Slack (Failure) + - name: Notify on Slack (Failure) if: failure() uses: slackapi/slack-github-action@v2.0.0 with: