Skip to content

Commit 141c2de

Browse files
Try to get the environment passing syntax correct.
1 parent 9939558 commit 141c2de

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

.github/workflows/publish-reusable.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ on:
1515
description: 'This is the repository-url parameter for pypa/gh-action-pypi-publish'
1616
required: true
1717
type: string
18-
environment:
19-
description: 'PyPI/TestPyPI name and url are required'
20-
type: environment
18+
environment_name:
19+
description: 'Name of environment that specifies PyPI/TestPyPI url'
20+
type: string
2121
required: true
2222
secrets:
2323
GH_TOKEN:
@@ -31,7 +31,7 @@ jobs:
3131
publish:
3232
name: Build
3333
runs-on: ubuntu-latest
34-
environment: ${{ inputs.environment }}
34+
environment: ${{ inputs.environment_name }}
3535
env:
3636
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
3737
GITHUB_REPO: ${{ github.repository }}

.github/workflows/publish-to-testpypi.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
jobs:
1111
publish:
1212
name: Publish wheel to TestPyPI
13+
environment:
14+
name: testpypi
15+
url: https://test.pypi.org/p/seclab-taskflow-agent2
1316
permissions:
1417
contents: write
1518
id-token: write # For trusted publishing
@@ -18,8 +21,6 @@ jobs:
1821
version: ${{ inputs.version }}
1922
release_notes: ${{ github.head_ref }}
2023
repository_url: https://test.pypi.org/legacy/
21-
environment:
22-
name: testpypi
23-
url: https://test.pypi.org/p/seclab-taskflow-agent2
24+
environment: testpypi
2425
secrets:
2526
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)