From b33ac2260f07ea49452cbfcc887986e0a32c89b3 Mon Sep 17 00:00:00 2001 From: Keith Holland <119868939+ChiefHolland@users.noreply.github.com> Date: Fri, 18 Aug 2023 19:26:19 -0500 Subject: [PATCH] feat: add task update workflow (#159) --- .github/workflows/update.yml | 44 ++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/update.yml diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml new file mode 100644 index 00000000..c2b31b7a --- /dev/null +++ b/.github/workflows/update.yml @@ -0,0 +1,44 @@ +--- +name: "Update" + +on: + schedule: + - cron: '38 2 * * 1,4' + workflow_dispatch: + +env: + python_version: "3.11" + +jobs: + update: + name: Update + runs-on: ubuntu-22.04 + permissions: + contents: write + pull-requests: write + steps: + - name: Checkout the repository + uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: ${{ env.python_version }} + - uses: actions/cache@v3 + with: + path: ~/.local/share/virtualenvs + key: ${{ runner.os }}-python-${{ env.python_version }}-pipenv-${{ hashFiles('Pipfile.lock') }} + - name: Install the dependencies + run: python -m pip install --upgrade pipenv + - name: Install Task + uses: arduino/setup-task@v1 + - name: Initialize the repo + run: task -v init + - name: Update the repository + run: task -v update + - name: Create or update a pull request + uses: peter-evans/create-pull-request@v4 + with: + title: Automated update to primary components + commit-message: Automated update to primary components + committer: Seiso Automation + delete-branch: true + signoff: true