Skip to content

Commit b0cf830

Browse files
authored
DEV: Use softprops/action-gh-release@v1 (#1991)
Get rid of deprecation warnings
1 parent 8c1095a commit b0cf830

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/release.yaml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ on:
1111

1212
jobs:
1313
build_and_publish:
14-
# this doesn't make sense if you don't have the PyPI secret
15-
if: github.repository == 'py-pdf/pypdf'
1614
name: Publish a new version of pypdf
1715
runs-on: ubuntu-latest
1816

@@ -48,15 +46,13 @@ jobs:
4846
echo "date=$(date +'%Y-%m-%d')" >> "$GITHUB_ENV"
4947
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
5048
echo "tag_body<<$EOF" >> "$GITHUB_ENV"
51-
git tag -l "${latest_tag}" --format='%(contents:body)' >> "$GITHUB_ENV"
49+
git --no-pager tag -l "${latest_tag}" --format='%(contents:body)' >> "$GITHUB_ENV"
5250
echo "$EOF" >> "$GITHUB_ENV"
5351
- name: Create GitHub Release 🚀
54-
uses: actions/create-release@v1
55-
env:
56-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52+
uses: softprops/action-gh-release@v1
5753
with:
58-
tag_name: ${{ github.ref }}
59-
release_name: Version ${{ env.latest_tag }}, ${{ env.date }}
54+
tag_name: ${{ env.latest_tag }}
55+
name: Version ${{ env.latest_tag }}, ${{ env.date }}
6056
draft: false
6157
prerelease: false
6258
body: ${{ env.tag_body }}

0 commit comments

Comments
 (0)