Freeze-requirements #13
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
# Copyright (C) 2024 Intel Corporation | |
# SPDX-License-Identifier: Apache-2.0 | |
name: Freeze-requirements | |
on: | |
workflow_dispatch: | |
jobs: | |
freeze-requirements: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.ref }} | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Set up Git | |
run: | | |
git config --global user.name "NeuralChatBot" | |
git config --global user.email "[email protected]" | |
git remote set-url origin https://NeuralChatBot:"${{ secrets.ACTION_TOKEN }}"@github.com/opea-project/GenAIComps.git | |
- name: Run script | |
run: | | |
bash .github/workflows/scripts/freeze_requirements.sh | |
- name: Commit changes | |
run: | | |
git add . | |
git commit -s -m "Freeze requirements" | |
git push |