Skip to content

Commit 2c7b926

Browse files
committed
Added git credential inputs
1 parent 56185ae commit 2c7b926

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

action.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ branding:
77
inputs:
88
manifest_url:
99
description: 'Specifies the url or git repo to fetch the manifest from. Used in repo init'
10-
required: true
10+
required: false
1111
default: https://github.com/${{ github.repository_owner }}/manifests
1212
manifest_branch:
1313
description: 'Specifies what manifest branch to use. Used in repo init'
@@ -17,6 +17,13 @@ inputs:
1717
description: 'Specifies the name of the manifest file to find. Used in repo init'
1818
required: false
1919
default: default.xml
20+
username:
21+
description: 'The username to use when authenticating to the manifest server'
22+
required: false
23+
default: ${{ github.actor }}
24+
password:
25+
description: 'The password or token to use when authenticating while fetching the manifest and git fetching repositories'
26+
required: true
2027
runs:
2128
using: "composite"
2229
steps:
@@ -31,4 +38,4 @@ runs:
3138
run: ~/.bin/repo init -u ${{ inputs.manifest_url }} -b ${{ inputs.manifest_branch }} -m ${{ inputs.manifest_filename }}
3239
- name: Sync repos
3340
shell: bash
34-
run: ~/.bin/repo sync
41+
run: ~/.bin/repo sync -u ${{ inputs.username }} -p ${{ inputs.password }}

0 commit comments

Comments
 (0)