Skip to content

Commit

Permalink
fix: add id for setup-python
Browse files Browse the repository at this point in the history
  • Loading branch information
myouju committed Jun 10, 2024
1 parent 78e87be commit df7feb7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
- uses: actions/checkout@v2

- name: Setup Python Version
id: setup-python
uses: actions/setup-python@v2
with:
python-version: "${{ matrix.python-version }}"
Expand Down Expand Up @@ -50,7 +51,7 @@ jobs:
# Only do these on push

- name: Run Integration Tests
if: github.event_name == 'push' && steps.setup-python.outputs.python-version == '3.8'
if: github.event_name == 'push' && startsWith(steps.setup-python.outputs.python-version, '3.8')
env:
DRY_RUN_SVC_JSON: ${{ secrets.DRY_RUN_SVC_JSON }}
run: |
Expand All @@ -59,7 +60,7 @@ jobs:
make integration
- name: Publish package to TestPyPI
if: github.event_name == 'push' && steps.setup-python.outputs.python-version == '3.8'
if: github.event_name == 'push' && startsWith(steps.setup-python.outputs.python-version, '3.8')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
Expand All @@ -68,7 +69,7 @@ jobs:
skip_existing: true

- name: Publish package to PyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') && steps.setup-python.outputs.python-version == '3.8'
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') && startsWith(steps.setup-python.outputs.python-version, '3.8')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
Expand Down

0 comments on commit df7feb7

Please sign in to comment.