-
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Glenn Jocher <[email protected]>
- Loading branch information
1 parent
bf9ff78
commit 69a6d9f
Showing
1 changed file
with
9 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ on: | |
|
||
jobs: | ||
tag-and-release: | ||
if: github.repository == 'ultralytics/yolo-ios-app' && github.actor == 'glenn-jocher' | ||
if: github.repository == 'ultralytics/yolo-flutter-app' && github.actor == 'glenn-jocher' | ||
name: Tag and Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -33,12 +33,10 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
token: ${{ secrets._GITHUB_TOKEN }} | ||
|
||
- name: Git config | ||
run: | | ||
git config --global user.name "UltralyticsAssistant" | ||
git config --global user.email "[email protected]" | ||
- name: Check if tag exists | ||
id: check_tag | ||
run: | | ||
|
@@ -49,27 +47,31 @@ jobs: | |
echo "Tag ${{ github.event.inputs.tag_name }} does not exist" | ||
echo "tag_exists=false" >> $GITHUB_OUTPUT | ||
fi | ||
- name: Publish new tag | ||
if: steps.check_tag.outputs.tag_exists == 'false' | ||
run: | | ||
git tag -a "${{ github.event.inputs.tag_name }}" -m "$(git log -1 --pretty=%B)" | ||
git push origin "${{ github.event.inputs.tag_name }}" | ||
- name: Set up Python environment | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.x" | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip wheel | ||
pip install ultralytics-actions | ||
- name: Publish new release | ||
env: | ||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | ||
GITHUB_TOKEN: ${{ secrets._GITHUB_TOKEN }} | ||
CURRENT_TAG: ${{ github.event.inputs.tag_name }} | ||
run: ultralytics-actions-summarize-release | ||
shell: bash | ||
- name: Notify Success | ||
if: success() && github.event.inputs.publish_tag == 'true' | ||
uses: slackapi/[email protected] | ||
with: | ||
webhook-type: incoming-webhook | ||
webhook: ${{ secrets.SLACK_WEBHOOK_URL_HUBWEB }} | ||
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 tag and release `${{ github.event.inputs.tag_name }}` published 🎉\n*Job Status:* ${{ job.status }}\n*Release Notes:* https://github.com/${{ github.repository }}/releases/tag/${{ github.event.inputs.tag_name }}" |