rename 'params.package' to 'params.name' and 'params.artifacts.wheel' to 'params.artifacts.package'

This commit is contained in:
umarcor
2021-11-29 22:36:23 +01:00
parent 348b8d2258
commit e7a0ac0b7a
4 changed files with 8 additions and 8 deletions

View File

@@ -14,14 +14,14 @@ on:
default: 'wheel' default: 'wheel'
type: string type: string
artifact: artifact:
description: 'Name of the wheel artifact.' description: 'Name of the package artifact.'
required: true required: true
type: string type: string
jobs: jobs:
Package: Package:
name: 📦 Package in Wheel Format name: 📦 Package in Source and Wheel Format
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:

View File

@@ -40,12 +40,12 @@ jobs:
run: | run: |
name = '${{ inputs.name }}' name = '${{ inputs.name }}'
params = { params = {
'package': name, 'name': name,
'python_version': '${{ inputs.python_version }}', 'python_version': '${{ inputs.python_version }}',
'artifacts': { 'artifacts': {
'coverage': f'{name}-coverage', 'coverage': f'{name}-coverage',
'typing': f'{name}-typing', 'typing': f'{name}-typing',
'wheel': f'{name}-wheel', 'package': f'{name}-package',
'doc': f'{name}-doc', 'doc': f'{name}-doc',
} }
} }

View File

@@ -14,7 +14,7 @@ on:
default: 'wheel twine' default: 'wheel twine'
type: string type: string
artifact: artifact:
description: 'Name of the wheel artifact.' description: 'Name of the package artifact.'
required: true required: true
type: string type: string
secrets: secrets:

View File

@@ -40,7 +40,7 @@ jobs:
needs: needs:
- Params - Params
with: with:
mypy_args: -m ${{ fromJson(needs.Params.outputs.params).package }} mypy_args: -m ${{ fromJson(needs.Params.outputs.params).name }}
artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.typing }} artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.typing }}
# Optional # Optional
python_version: ${{ fromJson(needs.Params.outputs.params).python_version }} python_version: ${{ fromJson(needs.Params.outputs.params).python_version }}
@@ -62,7 +62,7 @@ jobs:
- Params - Params
- Coverage - Coverage
with: with:
artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.wheel }} artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.package }}
# Optional # Optional
python_version: ${{ fromJson(needs.Params.outputs.params).python_version }} python_version: ${{ fromJson(needs.Params.outputs.params).python_version }}
requirements: 'wheel' requirements: 'wheel'
@@ -75,7 +75,7 @@ jobs:
- Release - Release
- Package - Package
with: with:
artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.wheel }} artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.package }}
# Optional # Optional
python_version: ${{ fromJson(needs.Params.outputs.params).python_version }} python_version: ${{ fromJson(needs.Params.outputs.params).python_version }}
requirements: 'wheel twine' requirements: 'wheel twine'