-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
35 lines (34 loc) · 1.07 KB
/
action.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
name: 'PR documentation URL'
description: 'Comment a PR with a documentation preview URL'
inputs:
github-token:
description: 'The token to authenticate with'
urlroot:
description: 'Root of the URL were documentation preview is available'
required: true
default: 'none'
pr-prefix:
description: 'Prefix added to the contents of "--pr-file" when generating the URL link'
required: false
default: ''
pr-file:
description: 'File generated by the workflow containing the number of the PR for which documentation preview is being generated'
required: true
default: 'none'
runs:
using: "composite"
steps:
- id: setup-python
run: |
pip3 install setuptools wheel
pip3 install -r ${{ github.action_path }}/requirements.txt
shell: bash
- id: run-python
run: |
python3 ${{ github.action_path }}/action.py \
-u "${{ inputs.urlroot }}" \
-p "${{ inputs.pr-prefix }}" \
-f "${{ inputs.pr-file }}"
shell: bash
env:
GITHUB_TOKEN: ${{ inputs.github-token }}