Skip to content
This repository was archived by the owner on Jun 16, 2022. It is now read-only.

Commit b8fd0f9

Browse files
committed
Update auto-update.yml
1 parent 8d53504 commit b8fd0f9

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Auto Update
2+
3+
# Controls when the workflow will run
4+
on:
5+
workflow_dispatch: # Allows workflow to be manually triggered from Actions page
6+
schedule:
7+
- cron: "0 0 * * 0" # Runs every Sunday at midnight
8+
9+
jobs:
10+
pipenv-upgrade:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
- name: Install python
16+
uses: actions/setup-python@v4
17+
with:
18+
python-version: 3.9
19+
- name: Update dependencies
20+
run: pipenv lock
21+
- uses: tibdex/github-app-token@v1
22+
id: generate-token
23+
with:
24+
app_id: ${{ secrets.APP_ID }}
25+
private_key: ${{ secrets.APP_PRIVATE_KEY }}
26+
- name: Create Pull Request
27+
uses: peter-evans/create-pull-request@v4
28+
with:
29+
title: "Auto Piepnv Update"
30+
body: "This PR was created automatically by the Auto Update workflow."
31+
signoff: true
32+
commit-message: "Update dependencies via `pipenv lock`."
33+
branch: "create-pull-request/auto-update/pipenv"
34+
branch-suffix: "timestamp"
35+
labels: "auto-update,dependencies,python"
36+
delete-branch: true
37+
token: ${{ steps.generate-token.outputs.token }}

0 commit comments

Comments
 (0)