-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
38 lines (35 loc) · 1.15 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
36
37
38
name: Batch keybox checker
description: Batch keybox checker
inputs:
aosp:
description: A boolean value that categorizes the AOSP keybox as a survivor, defaulting to False.
required: false
default: false
output:
description: Directory where keybox is located, defaults to current directory.
required: false
default: "."
path:
description: Directory where keybox is located, defaults to current directory.
required: false
default: "."
runs:
using: 'composite'
steps:
- uses: actions/setup-python@v5
with:
python-version: 3.12
- run: pip install "${{ github.action_path }}"
shell: bash
- if: ${{ inputs.aosp != 'false' }}
run: keyboxchecker -a -p "${{ inputs.path }}" -o "${{ inputs.output }}"
shell: bash
env:
repository: "${{ github.repository }}"
action_repository: "${{ github.action_repository }}"
- if: ${{ inputs.aosp == 'false' }}
run: keyboxchecker -p "${{ inputs.path }}" -o "${{ inputs.output }}"
shell: bash
env:
repository: "${{ github.repository }}"
action_repository: "${{ github.action_repository }}"