forked from bridgecrewio/checkov
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (45 loc) · 1.45 KB
/
pipenv-update.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: pipenv-update
on:
schedule:
- cron: '8 22 * * 1'
workflow_dispatch:
jobs:
pipenv-update:
runs-on: [self-hosted, public, linux, x64]
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v3
with:
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
- uses: actions/setup-python@v2
with:
python-version: 3.7
- uses: dschep/install-pipenv-action@v1
with:
# version 2021.11.5, 2021.11.5.post0 do not work
version: 2021.5.29
- run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
pipenv update
git add -u
git commit -m "update pipenv packages"
env:
GITHUB_TOKEN: ${{ github.PAT_TOKEN }}
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.PAT_TOKEN }}
title: '[AUTO-PR] Update pipenv packages'
body: |
bump pipenv packages
- Auto-generated by [pipenv-update github action](https://github.com/bridgecrewio/checkov/blob/master/.github/workflows/pipenv-update.yml)
labels: automated pr
branch: pipenvfix
branch-suffix: timestamp