Skip to content

Commit 4b6101f

Browse files
committed
Update deprecated GitHub Actions in workflows
1 parent 7d3183f commit 4b6101f

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- name: Checkout code
10-
uses: actions/checkout@v2
10+
uses: actions/checkout@v4
1111
with:
1212
fetch-depth: 0
1313
- name: Prepare tag
@@ -26,7 +26,7 @@ jobs:
2626
id: release_output
2727
if: ${{ steps.prepare_tag.outcome == 'success' }}
2828
run: |
29-
echo "::set-output name=tag::${{ env.TAG }}"
29+
echo "tag=${{ env.TAG }}" >> $GITHUB_OUTPUT
3030
outputs:
3131
tag: ${{ steps.release_output.outputs.tag }}
3232

@@ -35,7 +35,7 @@ jobs:
3535
needs: check-release-tag
3636
if: ${{ needs.check-release-tag.outputs.tag }}
3737
steps:
38-
- uses: actions/checkout@v2
38+
- uses: actions/checkout@v4
3939
- name: Prepare tag
4040
run: |
4141
export TAG=v$(awk '/VERSION =/ { gsub("'"\'"'",""); print $3 }' pusher/version.py)
@@ -49,22 +49,22 @@ jobs:
4949
csplit -s CHANGELOG.md "/##/" {1}
5050
cat xx01 > CHANGELOG.tmp
5151
- name: Create Release
52-
uses: actions/create-release@v1
53-
env:
54-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52+
uses: softprops/action-gh-release@v2.6.1
5553
with:
5654
tag_name: ${{ env.TAG }}
57-
release_name: ${{ env.TAG }}
55+
name: ${{ env.TAG }}
5856
body_path: CHANGELOG.tmp
5957
draft: false
6058
prerelease: false
59+
env:
60+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6161

6262
upload-to-PyPI:
6363
runs-on: ubuntu-latest
6464
needs: create-github-release
6565
steps:
66-
- uses: actions/checkout@v2
67-
- uses: actions/setup-python@v4
66+
- uses: actions/checkout@v4
67+
- uses: actions/setup-python@v5
6868
with:
6969
python-version: '3.10'
7070
- name: Build package

.github/workflows/release_pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ jobs:
1111
name: Prepare release
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v4
1515
- name: Get current version
1616
shell: bash
1717
run: |
1818
CURRENT_VERSION=$(awk '/VERSION =/ { gsub("'"\'"'",""); print $3 }' pusher/version.py)
1919
echo "CURRENT_VERSION=$CURRENT_VERSION" >> $GITHUB_ENV
20-
- uses: actions/checkout@v2
20+
- uses: actions/checkout@v4
2121
with:
2222
repository: pusher/public_actions
2323
path: .github/actions

0 commit comments

Comments
 (0)