Skip to content

Dependencies for redturtle.bandi 1.5.0 #18

Dependencies for redturtle.bandi 1.5.0

Dependencies for redturtle.bandi 1.5.0 #18

Workflow file for this run

name: Create requirements.txt for dependabot
on:
push:
jobs:
build:
name: requirements.txt
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build
run: |
cd docker
python create-constraints.py constraints.cfg ../dependabot/requirements.txt
# TODO: fix commit permissions https://github.com/ossf/scorecard-action/blob/main/docs/authentication/fine-grained-auth-token.md#authentication-with-fine-grained-pat-optional
# - name: Commit and push changes
# run: |
# git config --global user.email "[email protected]"
# git config --global user.name "RedTurtle CI BOT"
# git add dependabot/requirements.txt
# git commit -m "Auto-generate file at $(date)" || exit 0
# git push https://${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git HEAD:${{ github.ref_name }}
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}