Skip to content

Commit 1a85708

Browse files
authored
Merge pull request #2936 from port-labs/fix-scaffold-new-service-github-workflow
Add step to extract runId from port_context in GitHub Actions workflow
2 parents c671859 + 60a668a commit 1a85708

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/guides/all/scaffold-a-new-service.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,11 +331,14 @@ If the GitHub organization which will house your workflow is not the same as the
331331
env:
332332
//highlight-next-line
333333
ORG_NAME: <Your ORG name>
334-
PORT_RUN_ID: ${{ fromJson(inputs.port_context).runId }}
335334

336335
steps:
337336
- uses: actions/checkout@v4
338-
337+
338+
- name: Extract runId from port_context
339+
run: |
340+
echo "PORT_RUN_ID=$(echo '${{ inputs.port_context }}' | jq -r .runId)" >> $GITHUB_ENV
341+
339342
- name: Create a log message
340343
uses: port-labs/port-github-action@v1
341344
with:

0 commit comments

Comments
 (0)