Skip to content

Commit

Permalink
Restrict branch
Browse files Browse the repository at this point in the history
Signed-off-by: Thanawan Atchariyachanvanit <[email protected]>
  • Loading branch information
thanawan-atc authored Jul 26, 2023
1 parent 6d0c063 commit 3327cd8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/model_uploader.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,19 @@ on:
- "MEAN_SQRT_LEN"

env:
opensearch_bucket: "opensearch-exp" # Will be renamed to"opensearch-models"
opensearch_bucket: "opensearch-exp" # TO-BE-CHANGED

jobs:
# Step 2: Initiate workflow variable
init-workflow-var:
runs-on: 'ubuntu-latest'
steps:
- name: Fail if branch is not main
if: github.ref != 'refs/heads/workflow_for_review' # TO-BE-CHANGED
#if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
run: |
echo "This workflow should not be triggered with workflow_dispatch on a branch other than main"
exit 1
- name: Initiate model_folder
id: init_model_folder
run: |
Expand Down

0 comments on commit 3327cd8

Please sign in to comment.