-
Notifications
You must be signed in to change notification settings - Fork 36
43 lines (38 loc) · 1.05 KB
/
auto-update-windows.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
name: Auto-Update mxpy (Windows)
on:
pull_request:
branches: [main, feat/*]
workflow_dispatch:
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
jobs:
install:
runs-on: windows-2019
strategy:
matrix:
python-version: [3.11]
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install
shell: bash
run: |
echo "cd:"
echo %cd%
curl.exe --output mxpy-up.py --url https://raw.githubusercontent.com/multiversx/mx-sdk-py-cli/$BRANCH_NAME/mxpy-up.py
python3 mxpy-up.py --exact-version=9.0.0 --not-interactive
- name: Smoke test
shell: bash
run: |
export PATH="~/multiversx-sdk:${PATH}"
mxpy --version
- name: Auto-Update
shell: bash
run: |
echo "cd:"
echo %cd%
export PATH="~/multiversx-sdk:${PATH}"
mxpy-update
mxpy --version