-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
32 lines (32 loc) · 936 Bytes
/
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
name: Wait for pypi
description: Wait a certain time for a pypi package to become available.
inputs:
package_name:
description: Name of the pypi package
required: true
package_version:
description: Version of the package
required: true
timeout:
description: How long the action should wait in seconds
required: false
default: "30"
delay_between_requests:
description: Delay between requests in seconds
required: false
default: "1"
runs:
using: 'composite'
steps:
- name: Installing python
uses: actions/setup-python@v3
with:
python-version: 3.9
- name: Waiting for ${{ inputs.package_name }}==${{ inputs.version }}
run: |
$GITHUB_ACTION_PATH/wait_for_pypi.sh \
${{ inputs.package_name }} \
${{ inputs.package_version }} \
${{ inputs.timeout }} \
${{ inputs.delay_between_requests }}
shell: bash