-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yaml
40 lines (38 loc) · 992 Bytes
/
action.yaml
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
---
name: infrabits/pipup
description: Automatic update of `pip` dependancies
secrets:
github-access-token:
required: false
type: string
github-app-id:
required: false
type: int
github-app-key:
required: false
type: string
runs:
using: "composite"
steps:
- name: Set up Python 3.9
uses: actions/setup-python@v2
with: { python-version: '3.9' }
- shell: bash
run: pip install git+https://github.com/InfraBits/pipup.git@main
- uses: actions/checkout@v2
- shell: bash
run: |
if [ ! -z "${{ secrets.github-app-id }}" ];
then
pipup \
--merge \
--repository ${{ github.repository }} \
--github-app-id ${{ secrets.github-app-id }} \
--github-app-key ${{ secrets.github-app-key }}
else
pipup \
--merge \
--repository ${{ github.repository }}
fi
env:
GITHUB_TOKEN: ${{ secrets.github-access-token }}