Skip to content

Commit d3c796c

Browse files
committed
Fix steps being skipped on push events
1 parent a073369 commit d3c796c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/release.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,28 +100,28 @@ jobs:
100100
with:
101101
python-version: "3.11"
102102
- name: Publish to Test PyPI
103-
if: ${{ inputs.testpypi }}
103+
if: ${{ inputs.testpypi == true }}
104104
uses: pypa/gh-action-pypi-publish@release/v1
105105
with:
106106
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
107107
packages-dir: ./
108108
repository-url: https://test.pypi.org/legacy/
109109
- name: Publish to PyPI
110-
if: ${{ inputs.pypi }}
110+
if: ${{ inputs.pypi != false }}
111111
uses: pypa/gh-action-pypi-publish@release/v1
112112
with:
113113
password: ${{ secrets.PYPI_API_TOKEN }}
114114
packages-dir: ./
115115
- name: Draft release
116-
if: ${{ inputs.github }}
116+
if: ${{ inputs.github != false }}
117117
uses: softprops/action-gh-release@v1
118118
with:
119119
draft: true
120120
files: "./screen_brightness_control*"
121121
name: "${{ needs.getversion.outputs.version }}"
122122
tag_name: ${{ needs.getversion.outputs.version }}
123123
docs:
124-
if: ${{ inputs.docs }}
124+
if: ${{ inputs.docs != false }}
125125
needs: [release]
126126
runs-on: ubuntu-latest
127127
steps:

0 commit comments

Comments
 (0)