Skip to content

Commit 1ab19d7

Browse files
authored
SWI-4072 Update Workflows (#172)
1 parent f659a2f commit 1ab19d7

File tree

3 files changed

+25
-20
lines changed

3 files changed

+25
-20
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,21 @@ jobs:
4444
echo 'Please update your tag to match the expected regex pattern'
4545
exit 1
4646
fi
47+
4748
- name: Checkout
48-
uses: actions/checkout@v3
49+
uses: actions/checkout@v4
4950
with:
5051
ref: feature/openapi-generator-sdk
5152

5253
- name: Install Packages
5354
run: |
5455
pip install -r requirements.txt
5556
pip install -r test-requirements.txt
57+
5658
- name: Test
5759
run: |
5860
pytest -v
61+
5962
- name: Deploy to PYPI
6063
run: |
6164
pip install twine
@@ -111,8 +114,9 @@ jobs:
111114
echo 'Please update your tag to match the expected regex pattern'
112115
exit 1
113116
fi
117+
114118
- name: Checkout
115-
uses: actions/checkout@v2
119+
uses: actions/checkout@v4
116120

117121
- name: Install Packages
118122
run: |-

.github/workflows/listener.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
1-
# Ingest repository_dispatch events and trigger appropriate actions
1+
# Ingest repository_dispatch events and trigger appropriate actions
22
name: Listener
33

44
on:
55
repository_dispatch:
66
types: [Build]
77

88
jobs:
9-
build:
9+
build:
1010
if: ${{ github.event.action == 'Build' }}
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v4
1414

15-
- name: Build SDK and Open PR
15+
- name: Build SDK and Open PR
1616
uses: Bandwidth/[email protected]
17-
with:
17+
with:
1818
branch-name: ${{ github.event.client_payload.branchName }}
1919
username: ${{ secrets.DX_GITHUB_USERNAME }}
2020
token: ${{ secrets.DX_GITHUB_TOKEN }}
2121
openapi-generator-version: 6.0.1
22-
language: python
22+
language: python
2323
config: ./openapi-config.yml
24-
env:
24+
env:
2525
GITHUB_TOKEN: ${{ secrets.DX_GITHUB_TOKEN }}
26-
26+
2727
- name: Open Pull Request
2828
run: |
2929
exists=$(hub pr list -h {{ inputs.branch-name }})
@@ -34,13 +34,13 @@ jobs:
3434
echo "PR already exists for this branch"
3535
fi
3636
env:
37-
GITHUB_TOKEN: ${{ secrets.DX_GITHUB_TOKEN }}
38-
39-
- name: Output PR Number
37+
GITHUB_TOKEN: ${{ secrets.DX_GITHUB_TOKEN }}
38+
39+
- name: Output PR Number
4040
id: output-pr-number
4141
run: echo "PR_NUMBER=$(hub pr list -h ${{ inputs.branch-name }} -f %I)" >> $GITHUB_ENV
4242
env:
43-
GITHUB_TOKEN: ${{ secrets.DX_GITHUB_TOKEN }}
43+
GITHUB_TOKEN: ${{ secrets.DX_GITHUB_TOKEN }}
4444

4545
# Comment on PR
4646
- name: Comment on PR

.github/workflows/test.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ on:
1212
default: WARNING
1313
type: choice
1414
options:
15-
- WARNING
16-
- DEBUG
15+
- WARNING
16+
- DEBUG
1717

1818
concurrency:
1919
group: ${{ github.workflow }}-${{ github.head_ref }}
@@ -33,8 +33,6 @@ env:
3333
ATT_NUMBER: ${{ secrets.ATT_NUMBER }}
3434
T_MOBILE_NUMBER: ${{ secrets.T_MOBILE_NUMBER }}
3535
BASE_CALLBACK_URL: ${{ secrets.BASE_CALLBACK_URL }}
36-
PYTHON_VERSION: ${{ matrix.python-version }}
37-
OPERATING_SYSTEM: ${{ matrix.os }}
3836
MANTECA_ACTIVE_NUMBER: ${{ secrets.MANTECA_ACTIVE_NUMBER }}
3937
MANTECA_IDLE_NUMBER: ${{ secrets.MANTECA_IDLE_NUMBER }}
4038
MANTECA_BASE_URL: ${{ secrets.MANTECA_BASE_URL }}
@@ -49,13 +47,16 @@ jobs:
4947
matrix:
5048
os: [windows-2022, windows-2019, ubuntu-20.04, ubuntu-latest]
5149
python-version: [3.8, 3.9, "3.10", "3.11"]
50+
env:
51+
PYTHON_VERSION: ${{ matrix.python-version }}
52+
OPERATING_SYSTEM: ${{ matrix.os }}
5253

5354
steps:
5455
- name: Checkout
55-
uses: actions/checkout@v2
56+
uses: actions/checkout@v4
5657

5758
- name: Set up Python
58-
uses: actions/setup-python@v2
59+
uses: actions/setup-python@v5
5960
with:
6061
python-version: ${{ matrix.python-version }}
6162

0 commit comments

Comments
 (0)