From e6ec892a6c2fbfa4a257601ee37aefd663ed7bbd Mon Sep 17 00:00:00 2001 From: JDJG Date: Mon, 11 Nov 2024 19:53:02 -0500 Subject: [PATCH] Add files via upload --- .github/workflows/auto-poetry.yml | 37 +++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/auto-poetry.yml diff --git a/.github/workflows/auto-poetry.yml b/.github/workflows/auto-poetry.yml new file mode 100644 index 0000000..ff44dc9 --- /dev/null +++ b/.github/workflows/auto-poetry.yml @@ -0,0 +1,37 @@ +name: Update pinned.txt + +on: + push: + paths: + - poetry.lock + +jobs: + update-requirements: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.11' # Specify the Python version you need + + - name: Install Poetry + uses: snok/install-poetry@v1 + with: + version: 1.8.3 + + - name: Install dependencies + run: poetry install + + - name: Export dependencies to pinned.txt + run: poetry export --without-hashes --without-urls | awk '{ print $1 }' FS=';' > pinned.txt + + - name: Show generated pinned.txt + run: cat pinned.txt + + - uses: EndBug/add-and-commit@v9 + with: + message: Export pinned.txt \ No newline at end of file