Skip to content

Commit c7379a4

Browse files
committed
Initial commit
0 parents  commit c7379a4

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 Bitovi
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

action.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: 'Initialize and sync repos using Androids repo command'
2+
description: 'Greet someone'
3+
inputs:
4+
manifest_url:
5+
description: 'Specifies the url or git repo to fetch the manifest from. Used in repo init'
6+
required: true
7+
default: https://github.com/${{ github.repository_owner }}/manifests
8+
manifest_branch:
9+
description: 'Specifies what manifest branch to use. Used in repo init'
10+
required: false
11+
default: main
12+
manifest_filename:
13+
description: 'Specifies the name of the manifest file to find. Used in repo init'
14+
required: false
15+
default: default.xml
16+
runs:
17+
using: "composite"
18+
steps:
19+
- name: Download the android repo tool
20+
shell: bash
21+
run: |
22+
mkdir -p ~/.bin
23+
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/.bin/repo
24+
chmod a+rx ~/.bin/repo
25+
- name: Initialize the repo tool
26+
shell: bash
27+
run: ~/.bin/repo init -u ${{ inputs.manifest_url }} -b ${{ inputs.manifest_branch }} -m ${{ inputs.manifest_filename }}
28+
- name: Sync repos
29+
shell: bash
30+
run: ~/.bin/repo sync

0 commit comments

Comments
 (0)