Skip to content

Commit

Permalink
fix token name (#690)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
XuehaoSun authored Aug 29, 2024
1 parent 2a2ff45 commit 1e47444
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/scripts/update_images_tag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/weekly-update-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 1e47444

Please sign in to comment.