Skip to content

Commit 74c5336

Browse files
The set-output command is deprecated issue #42
1 parent 6a3f934 commit 74c5336

2 files changed

Lines changed: 17 additions & 17 deletions

File tree

.github/workflows/dev.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
# The type of runner that the job will run on
2222
strategy:
2323
matrix:
24-
python-versions: ['3.7', '3.8', '3.9', '3.10']
24+
python-versions: ['3.8', '3.9', '3.10', '3.11']
2525
# github action doesn't goes well with windows due to docker support
2626
# github action doesn't goes well with macos due to `no docker command`
2727
#os: [ubuntu-20.04, windows-latest, macos-latest]
@@ -37,8 +37,8 @@ jobs:
3737
# Steps represent a sequence of tasks that will be executed as part of the job
3838
steps:
3939
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
40-
- uses: actions/checkout@v2
41-
- uses: actions/setup-python@v2
40+
- uses: actions/checkout@v4
41+
- uses: actions/setup-python@v4
4242
with:
4343
python-version: ${{ matrix.python-versions }}
4444

@@ -51,10 +51,10 @@ jobs:
5151
- name: Declare variables for convenient use
5252
id: variables_step
5353
run: |
54-
echo "::set-output name=repo_owner::${GITHUB_REPOSITORY%/*}"
55-
echo "::set-output name=repo_name::${GITHUB_REPOSITORY#*/}"
56-
echo "::set-output name=package_name::`poetry version | awk '{print $1}'`"
57-
echo "::set-output name=package_version::`poetry version --short`"
54+
echo "repo_owner=${GITHUB_REPOSITORY%/*}" >> $GITHUB_OUTPUT
55+
echo "repo_name=${GITHUB_REPOSITORY#*/}" >> $GITHUB_OUTPUT
56+
echo "package_name=`poetry version | awk '{print $1}'`" >> $GITHUB_OUTPUT
57+
echo "package_version=`poetry version --short`" >> $GITHUB_OUTPUT
5858
shell: bash
5959

6060
- name: test with tox
@@ -66,10 +66,10 @@ jobs:
6666
# you may need to change os below
6767
runs-on: ubuntu-latest
6868
steps:
69-
- uses: actions/checkout@v2
70-
- uses: actions/setup-python@v2
69+
- uses: actions/checkout@v4
70+
- uses: actions/setup-python@v4
7171
with:
72-
python-version: '3.9'
72+
python-version: '3.11'
7373

7474
- name: Install dependencies
7575
run: |

.github/workflows/release.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020

2121
strategy:
2222
matrix:
23-
python-versions: ['3.9']
23+
python-versions: ['3.11']
2424

2525
# map step outputs to job outputs so they can be share among jobs
2626
outputs:
@@ -32,15 +32,15 @@ jobs:
3232
# Steps represent a sequence of tasks that will be executed as part of the job
3333
steps:
3434
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
35-
- uses: actions/checkout@v2
35+
- uses: actions/checkout@v4
3636

3737
- name: build change log
3838
id: build_changelog
3939
uses: mikepenz/release-changelog-builder-action@v3.2.0
4040
env:
4141
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4242

43-
- uses: actions/setup-python@v2
43+
- uses: actions/setup-python@v4
4444
with:
4545
python-version: ${{ matrix.python-versions }}
4646

@@ -53,10 +53,10 @@ jobs:
5353
- name: Declare variables for convenient use
5454
id: variables_step
5555
run: |
56-
echo "::set-output name=repo_owner::${GITHUB_REPOSITORY%/*}"
57-
echo "::set-output name=repo_name::${GITHUB_REPOSITORY#*/}"
58-
echo "::set-output name=package_name::`poetry version | awk '{print $1}'`"
59-
echo "::set-output name=package_version::`poetry version --short`"
56+
echo "repo_owner=${GITHUB_REPOSITORY%/*}" >> $GITHUB_OUTPUT
57+
echo "repo_name=${GITHUB_REPOSITORY#*/}" >> $GITHUB_OUTPUT
58+
echo "package_name=`poetry version | awk '{print $1}'`" >> $GITHUB_OUTPUT
59+
echo "package_version=`poetry version --short`" >> $GITHUB_OUTPUT
6060
shell: bash
6161

6262
- name: publish documentation

0 commit comments

Comments
 (0)