-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add task update workflow (#159)
- Loading branch information
1 parent
2c6d49a
commit b33ac22
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 <[email protected]> | ||
delete-branch: true | ||
signoff: true |