-
Notifications
You must be signed in to change notification settings - Fork 41
/
action.yml
44 lines (41 loc) · 1.37 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
name: Setup Bowtie
description: "Install Bowtie, hooray!"
author: "Julian Berman"
branding:
icon: package
color: blue
inputs:
version:
required: false
description: "bowtie version to be installed"
default: ""
installation-attempts:
required: false
default: "5"
description: "number of attempts to install bowtie with specified version if this version is not yet avaialble"
installation-wait-seconds:
required: false
default: "10"
description: "number of seconds to wait before performing the next installation attempt if current one has failed"
runs:
using: composite
steps:
- uses: actions/setup-python@v5
id: localpython
with:
python-version: "3.12 - 3.13"
update-environment: false
- name: "Install latest Bowtie"
if: inputs.version == ''
run: pipx install --python "${{ steps.localpython.outputs.python-path }}" bowtie-json-schema
shell: bash
- name: "Install Bowtie ${{ inputs.version }}"
if: inputs.version != ''
uses: nick-fields/retry@v3
with:
timeout_minutes: 10
max_attempts: ${{ inputs.installation-attempts }}
retry_wait_seconds: ${{ inputs.installation-wait-seconds }}
shell: bash
command: pipx install --python "${{ steps.localpython.outputs.python-path }}" bowtie-json-schema==${{ inputs.version }}
retry_on: error