From 88893faaa2c266825a10b562c6b19dbf73869d0f Mon Sep 17 00:00:00 2001 From: "Sun, Xuehao" Date: Thu, 29 Aug 2024 21:26:16 +0800 Subject: [PATCH] fix token name (#690) * fix token Signed-off-by: Sun, Xuehao * fix Signed-off-by: Sun, Xuehao --------- Signed-off-by: Sun, Xuehao --- .github/workflows/scripts/update_images_tag.sh | 10 ---------- .github/workflows/weekly-update-images.yml | 2 +- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/.github/workflows/scripts/update_images_tag.sh b/.github/workflows/scripts/update_images_tag.sh index e28b57db40..98fd4fa167 100644 --- a/.github/workflows/scripts/update_images_tag.sh +++ b/.github/workflows/scripts/update_images_tag.sh @@ -33,17 +33,7 @@ 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 echo "::group::check $repo_image" get_latest_version $repo_image 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 }}