-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
53 lines (53 loc) · 1.97 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: 'Run edgetest'
description: 'Run edgetest on your Python package'
inputs:
edgetest-flags: # id of input
description: 'Options to pass to edgetest'
required: true
default: ''
base-branch: # branch to base PR off
description: 'Branch to base PR off'
required: true
default: 'dev'
skip-pr: # skip PR creation
description: 'Skip submitting a PR if there are changes (boolean)'
required: true
python-version: # Python version to use
description: 'Python version to use (from "setup-miniconda"). Defaults to 3.10.
See https://anaconda.org/anaconda/python for available "python" versions.'
default: '3.10'
add-paths: # files to include in git commit
description: 'A comma separated list of file paths to commit.
Paths should follow gits pathspec syntax. If no paths are specified,
all new and modified files are added.'
default: '*'
runs:
using: "composite"
steps:
- run: echo Running edgetest with the following options ${{ inputs.edgetest-flags }}.
shell: bash
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: ${{ inputs.python-version }}
channels: conda-forge
- name: Install edgetest edgetest-conda and edgetest-pip-tools
shell: bash -l {0}
run: |
conda install edgetest edgetest-conda edgetest-pip-tools
- name: Run edgetest
shell: bash -l {0}
run: |
edgetest ${{ inputs.edgetest-flags }}
- name: Create Pull Request
if: ${{ inputs.skip-pr == 'false' }}
uses: peter-evans/create-pull-request@v7
with:
branch: edgetest-patch
base: ${{ inputs.base-branch }}
delete-branch: true
title: Changes by run-edgetest action
commit-message: '[edgetest] automated change'
body: Automated changes by [run-edgetest-action](https://github.com/edgetest-dev/run-edgetest-action) GitHub action
add-paths: |
${{ inputs.add-paths }}