fix token name (#690)

* fix token

Signed-off-by: Sun, Xuehao <xuehao.sun@intel.com>

* fix

Signed-off-by: Sun, Xuehao <xuehao.sun@intel.com>

---------

Signed-off-by: Sun, Xuehao <xuehao.sun@intel.com>
This commit is contained in:
Sun, Xuehao
2024-08-29 21:26:16 +08:00
committed by GitHub
parent 2a2ff45e2b
commit 1e47444559
2 changed files with 1 additions and 11 deletions

View File

@@ -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

View File

@@ -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 }}