Skip to content

Commit ee54f83

Browse files
authored
Merge pull request #2050 from PyCQA/version/bump-5.11.3
Revert set-output changes
2 parents 0d960cb + 1e33d78 commit ee54f83

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

.github/workflows/release.yml

+3-11
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ jobs:
3434
- name: Check if there is a parent commit
3535
id: check-parent-commit
3636
run: |
37-
echo "name=sha::$(git rev-parse --verify --quiet HEAD^)" >> $GITHUB_ENV
37+
echo "::set-output name=sha::$(git rev-parse --verify --quiet HEAD^)"
3838
3939
- name: Detect and tag new version
4040
id: check-version
41-
if: env.sha
41+
if: steps.check-parent-commit.outputs.sha
4242
uses: salsify/action-detect-and-tag-new-version@v2
4343
with:
4444
version-command: |
@@ -60,15 +60,7 @@ jobs:
6060
uses: pypa/gh-action-pypi-publish@release/v1
6161
with:
6262
user: __token__
63-
password: ${{ secrets.PYPI_TOKEN }}
64-
65-
- name: Publish package on TestPyPI
66-
if: "! steps.check-version.outputs.tag"
67-
uses: pypa/gh-action-pypi-publish@release/v1
68-
with:
69-
user: __token__
70-
password: ${{ secrets.TEST_PYPI_TOKEN }}
71-
repository_url: https://test.pypi.org/legacy/
63+
password: ${{ secrets.PYPI_API_TOKEN }}
7264

7365
- name: Publish the release notes
7466
uses: release-drafter/release-drafter@v5

0 commit comments

Comments
 (0)