Skip to content

Commit

Permalink
{CI} Add cli bot token (#7237)
Browse files Browse the repository at this point in the history
* add bot token
* add default message
  • Loading branch information
AllyW authored Feb 1, 2024
1 parent a21db49 commit 7639c81
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/VersionCalPRComment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ jobs:
- name: Comment on the pull request
uses: mshick/add-pr-comment@v2
with:
repo-token: ${{ secrets.AZCLIBOT_PAT }}
message-path: |
version_update.txt
message-failure: |
Expand Down
2 changes: 2 additions & 0 deletions scripts/ci/release_version_cal.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
base_meta_path = os.environ.get('base_meta_path', None)
diff_meta_path = os.environ.get('diff_meta_path', None)
output_file = os.environ.get('output_file', None)

changed_module_list = os.environ.get('changed_module_list', "").split()
pr_label_list = os.environ.get('pr_label_list', "").split()
pr_label_list = [name.lower() for name in pr_label_list]
Expand Down Expand Up @@ -104,6 +105,7 @@ def main():
print("pr_label_list: ", pr_label_list)
comment_message = []
if len(changed_module_list) == 0:
comment_message.append("For more info about extension versioning, please refer to [Extension version schema](https://github.com/Azure/azure-cli/blob/release/doc/extensions/versioning_guidelines.md)")
save_comment_message(cli_ext_path, output_file, comment_message)
return
next_version_pre_tag = get_next_version_pre_tag()
Expand Down

0 comments on commit 7639c81

Please sign in to comment.