From bf3eed302c88d59d8786b819105f3d8140e74887 Mon Sep 17 00:00:00 2001 From: Thanawan Atchariyachanvanit Date: Wed, 23 Aug 2023 18:10:02 -0400 Subject: [PATCH] Fix typo in model/model-listing workflow (#244) * Update model_uploader.yml Signed-off-by: Thanawan Atchariyachanvanit * Update model_listing_uploader.yml Signed-off-by: Thanawan Atchariyachanvanit * Update update_model_listing.yml Signed-off-by: Thanawan Atchariyachanvanit * Update CHANGELOG.md Signed-off-by: Thanawan Atchariyachanvanit --------- Signed-off-by: Thanawan Atchariyachanvanit --- .github/workflows/model_listing_uploader.yml | 2 +- .github/workflows/model_uploader.yml | 2 +- .github/workflows/update_model_listing.yml | 2 +- CHANGELOG.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/model_listing_uploader.yml b/.github/workflows/model_listing_uploader.yml index f08776ca..0c10eb7f 100644 --- a/.github/workflows/model_listing_uploader.yml +++ b/.github/workflows/model_listing_uploader.yml @@ -19,7 +19,7 @@ jobs: repo_model_listing_path: ./utils/model_uploader/model_listing/pretrained_model_listing.json steps: - name: Fail if branch is not main - if: github.ref == 'refs/heads/main' + if: github.ref != 'refs/heads/main' run: | echo "This workflow should only be triggered on 'main' branch" exit 1 diff --git a/.github/workflows/model_uploader.yml b/.github/workflows/model_uploader.yml index 751cd7b6..0b648e35 100644 --- a/.github/workflows/model_uploader.yml +++ b/.github/workflows/model_uploader.yml @@ -49,7 +49,7 @@ jobs: runs-on: 'ubuntu-latest' steps: - name: Fail if branch is not main - if: github.ref == 'refs/heads/main' + if: github.ref != 'refs/heads/main' run: | echo "This workflow should only be triggered on 'main' branch" exit 1 diff --git a/.github/workflows/update_model_listing.yml b/.github/workflows/update_model_listing.yml index ffc6396b..3d9ebe8d 100644 --- a/.github/workflows/update_model_listing.yml +++ b/.github/workflows/update_model_listing.yml @@ -18,7 +18,7 @@ jobs: # "ml-models/first_folder/ ml-models/second_folder/ ml-models/third_folder/" (Separate each folder with a space) steps: - name: Fail if branch is not main - if: github.ref == 'refs/heads/main' + if: github.ref != 'refs/heads/main' run: | echo "This workflow should only be triggered on 'main' branch" exit 1 diff --git a/CHANGELOG.md b/CHANGELOG.md index b4f7be91..e6f4872e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,7 +18,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) - Correct demo_ml_commons_integration.ipynb by @thanawan-atc in ([#208](https://github.com/opensearch-project/opensearch-py-ml/pull/208)) - Handle the case when the model max length is undefined in tokenizer by @thanawan-atc in ([#219](https://github.com/opensearch-project/opensearch-py-ml/pull/219)) - Change to use tokenCredentialId for triggering ml-models-release via generic webhook by @thanawan-atc in ([#240](https://github.com/opensearch-project/opensearch-py-ml/pull/240)) - +- Fix typo in model/model-listing workflows by @thanawan-atc in ([#244](https://github.com/opensearch-project/opensearch-py-ml/pull/244)) ## [1.1.0]