Skip to content

Commit b33ac22

Browse files
authored
feat: add task update workflow (#159)
1 parent 2c6d49a commit b33ac22

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/update.yml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
name: "Update"
3+
4+
on:
5+
schedule:
6+
- cron: '38 2 * * 1,4'
7+
workflow_dispatch:
8+
9+
env:
10+
python_version: "3.11"
11+
12+
jobs:
13+
update:
14+
name: Update
15+
runs-on: ubuntu-22.04
16+
permissions:
17+
contents: write
18+
pull-requests: write
19+
steps:
20+
- name: Checkout the repository
21+
uses: actions/checkout@v3
22+
- uses: actions/setup-python@v4
23+
with:
24+
python-version: ${{ env.python_version }}
25+
- uses: actions/cache@v3
26+
with:
27+
path: ~/.local/share/virtualenvs
28+
key: ${{ runner.os }}-python-${{ env.python_version }}-pipenv-${{ hashFiles('Pipfile.lock') }}
29+
- name: Install the dependencies
30+
run: python -m pip install --upgrade pipenv
31+
- name: Install Task
32+
uses: arduino/setup-task@v1
33+
- name: Initialize the repo
34+
run: task -v init
35+
- name: Update the repository
36+
run: task -v update
37+
- name: Create or update a pull request
38+
uses: peter-evans/create-pull-request@v4
39+
with:
40+
title: Automated update to primary components
41+
commit-message: Automated update to primary components
42+
committer: Seiso Automation <automation@seisollc.com>
43+
delete-branch: true
44+
signoff: true

0 commit comments

Comments
 (0)