-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathaction.yml
38 lines (36 loc) · 1.19 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: 'Commit tags'
description: 'Check commit (sauce) tags in an OSS based NCS repository'
inputs:
target:
description: 'path to the target repository'
default: 'none'
baserev:
description: 'base revision to use. Will compute a rev-list --first-parent to HEAD'
default: 'none'
upstream:
description: 'Upstream <org>/<repo>/<branch>'
default: 'none'
github-token:
description: 'The token to authenticate with'
args:
description: 'additional arguments'
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: |
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
python3 ${{ github.action_path }}/action.py \
--target "${{ inputs.target }}" \
--baserev "${{ inputs.baserev }}" \
--upstream "${{ inputs.upstream }}" \
--pr "${{ github.repository }}/${{ github.event.pull_request.number }}" \
shell: bash
env:
GITHUB_TOKEN: ${{ inputs.github-token }}