-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Sun, Xuehao <[email protected]>
- Loading branch information
Showing
3 changed files
with
67 additions
and
52 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# Copyright (C) 2024 Intel Corporation | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: Weekly update base images and 3rd party images | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * 0" | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
freeze-images: | ||
runs-on: ubuntu-latest | ||
env: | ||
USER_NAME: "NeuralChatBot" | ||
USER_EMAIL: "[email protected]" | ||
BRANCH_NAME: "update_images_tag" | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
ref: "main" | ||
|
||
- name: Install skopeo | ||
run: | | ||
sudo apt update | ||
sudo apt -y install skopeo | ||
- name: Set up Git | ||
run: | | ||
git config --global user.name ${{ env.USER_NAME }} | ||
git config --global user.email ${{ env.USER_EMAIL }} | ||
git remote set-url origin https://${{ env.USER_NAME }}:"${{ secrets.ACTION_TOKEN }}"@github.com/opea-project/GenAIExamples.git | ||
git checkout -b ${{ env.BRANCH_NAME }} | ||
- name: Run script | ||
run: | | ||
bash .github/workflows/scripts/update_images_tag.sh | ||
- name: Commit changes | ||
run: | | ||
git add . | ||
git commit -s -m "Update third party images tag" | ||
git push --set-upstream origin update_images_tag | ||
- 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 }} |