File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 1
1
name : Reusable publish documentation
2
2
3
3
env :
4
- BRANCH : develop
5
4
ORIGIN : awslabs/aws-lambda-powertools-python
6
5
7
6
on :
20
19
required : false
21
20
default : false
22
21
type : boolean
22
+ git_ref :
23
+ description : " Branch or commit ID to checkout from"
24
+ required : false
25
+ type : string
26
+ default : develop
23
27
24
28
permissions :
25
29
contents : write
36
40
- uses : actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
37
41
with :
38
42
fetch-depth : 0
43
+ ref : ${{ inputs.git_ref }}
39
44
- name : Install poetry
40
45
run : pipx install poetry
41
46
- name : Set up Python
56
61
git config pull.rebase true
57
62
git config remote.origin.url >&- || git remote add origin https://github.com/"$ORIGIN"
58
63
git pull origin "$BRANCH"
64
+ env :
65
+ BRANCH : ${{ inputs.git_ref }}
59
66
- name : Build docs website and API reference
60
67
env :
61
68
VERSION : ${{ inputs.version }}
You can’t perform that action at this time.
0 commit comments