Skip to content

Commit 3e42b3b

Browse files
authored
chore(ci): remove deprecated set-output syntax (#146)
fixes deprecation warnings in CI: > The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
1 parent 53417a0 commit 3e42b3b

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,38 +7,35 @@ on:
77
- master
88

99
jobs:
10-
create_matrix:
10+
prepare:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Create matrix
14-
uses: fabiocaccamo/create-matrix-action@v1
14+
id: create_matrix
15+
uses: fabiocaccamo/create-matrix-action@v3
1516
with:
1617
matrix: |
1718
python-version {3.7}, django-version {2.0,2.1,2.2,3.0,3.1}
1819
python-version {3.8}, django-version {2.2,3.0,3.1,3.2,4.0,4.1}
1920
python-version {3.9}, django-version {2.2,3.0,3.1,3.2,4.0,4.1}
2021
python-version {3.10}, django-version {3.2,4.0,4.1}
2122
python-version {3.11}, django-version {3.2,4.0,4.1}
22-
- name: Set matrix output variable
23-
id: set_matrix
24-
run: |
25-
echo "::set-output name=matrix::$(cat ./matrix.json)"
2623
outputs:
27-
matrix: ${{ steps.set_matrix.outputs.matrix }}
24+
matrix: ${{ steps.create_matrix.outputs.matrix }}
2825

2926
test:
30-
needs: create_matrix
27+
needs: prepare
3128
strategy:
3229
fail-fast: false
3330
matrix:
34-
include: ${{ fromJSON(needs.create_matrix.outputs.matrix) }}
31+
include: ${{ fromJson(needs.prepare.outputs.matrix) }}
3532
name: "Python ${{ matrix.python-version }} + Django ${{ matrix.django-version }}"
3633
runs-on: ubuntu-latest
3734
env:
3835
POETRY_VIRTUALENVS_CREATE: false
3936
steps:
4037
- uses: actions/checkout@v3
41-
- uses: actions/setup-python@v3
38+
- uses: actions/setup-python@v4
4239
with:
4340
python-version: ${{ matrix.python-version }}
4441
- run: pip install poetry
@@ -57,7 +54,7 @@ jobs:
5754
steps:
5855
- uses: actions/checkout@v3
5956
- name: Set up Python
60-
uses: actions/setup-python@v3
57+
uses: actions/setup-python@v4
6158
with:
6259
python-version: "3.11"
6360
- run: pip install black

0 commit comments

Comments
 (0)