From cb8c98963eb2dd00b7a72eeacf92fe011c87eb22 Mon Sep 17 00:00:00 2001 From: "Sun, Xuehao" Date: Thu, 29 Aug 2024 10:43:14 +0800 Subject: [PATCH 1/2] fix token Signed-off-by: Sun, Xuehao --- .github/workflows/scripts/update_images_tag.sh | 9 --------- .github/workflows/weekly-update-images.yml | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/.github/workflows/scripts/update_images_tag.sh b/.github/workflows/scripts/update_images_tag.sh index e28b57db40..a4967aebf7 100644 --- a/.github/workflows/scripts/update_images_tag.sh +++ b/.github/workflows/scripts/update_images_tag.sh @@ -33,15 +33,6 @@ function replace_image_version() { fi } -function check_branch_name() { - if [[ "$GITHUB_REF_NAME" == "main" ]]; then - echo "$GITHUB_REF_NAME is protected branch" - exit 0 - else - echo "branch name is $GITHUB_REF_NAME" - fi -} - function main() { check_branch_name for repo_image in "${!dict[@]}"; do diff --git a/.github/workflows/weekly-update-images.yml b/.github/workflows/weekly-update-images.yml index 520c4780bd..8cacbac7a8 100644 --- a/.github/workflows/weekly-update-images.yml +++ b/.github/workflows/weekly-update-images.yml @@ -51,4 +51,4 @@ jobs: - name: create pull request run: gh pr create -B main -H ${{ env.BRANCH_NAME }} --title 'Update ghcr.io/huggingface/text-generation-inference image tag' --body 'Created by Github action' env: - GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }} + GH_TOKEN: ${{ secrets.ACTION_TOKEN }} From 521b2572f79b7292358e0f0e732e6ad911a9fdd7 Mon Sep 17 00:00:00 2001 From: "Sun, Xuehao" Date: Thu, 29 Aug 2024 10:44:17 +0800 Subject: [PATCH 2/2] fix Signed-off-by: Sun, Xuehao --- .github/workflows/scripts/update_images_tag.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/scripts/update_images_tag.sh b/.github/workflows/scripts/update_images_tag.sh index a4967aebf7..98fd4fa167 100644 --- a/.github/workflows/scripts/update_images_tag.sh +++ b/.github/workflows/scripts/update_images_tag.sh @@ -34,7 +34,6 @@ function replace_image_version() { } function main() { - check_branch_name for repo_image in "${!dict[@]}"; do echo "::group::check $repo_image" get_latest_version $repo_image