name: Update poetry.lock on: push: branches: - "main" paths: - "pyproject.toml" workflow_dispatch: jobs: update-and-push: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Setup python uses: actions/setup-python@v3 with: python-version: "3.10" - name: Setup Poetry uses: Gr1N/setup-poetry@v8 - name: Update poetry.lock run: poetry update --lock - name: Commit & Push changes uses: actions-js/push@master with: github_token: ${{ secrets.GITHUB_TOKEN }} branch: "main"