Skip to content

Commit f12ab1a

Browse files
authored
Update scaffolder.yaml
1 parent d7d812b commit f12ab1a

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/workflows/scaffolder.yaml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@ jobs:
66
ServiceNowDevOpsChange:
77
runs-on: ubuntu-latest
88
env:
9-
ACTIONS_STEP_DEBUG: true # Enable debug logging
9+
ACTIONS_STEP_DEBUG: true # Enable GitHub Actions debug logging
10+
ACTIONS_RUNNER_DEBUG: true # Enable runner debug logging
1011
steps:
11-
- uses: ServiceNow/servicenow-devops-change@main
12+
- name: ServiceNow DevOps Change
13+
uses: ServiceNow/servicenow-devops-change@main
14+
id: change_request # Added ID for step reference
1215
with:
1316
devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }}
1417
instance-url: https://dev208227.service-now.com
@@ -17,11 +20,16 @@ jobs:
1720
job-name: 'ServiceNow DevOps Change'
1821
change-request: '{"attributes":{"requested_by":{"name": "Test User"},"assignment_group":{"name": "Change Approval Team"},"priority": "2","comments": "This is a sample pipeline script to be added in your change step","work_notes": "Update this to work_notes","start_date": "2025-10-08 11:59:59","end_date": "2025-10-09 11:59:59"}}'
1922
deployment-gate: '{"environment": "deploy-gates-demo", "jobName": "Deploy"}'
23+
2024
- name: Capture and echo the ServiceNow change request response
2125
run: |
22-
echo "Change Request Response: ${{ steps.change_request.outputs.change_request_response }}"
23-
# If the response is a JSON object, you can parse it using jq like so:
24-
echo "Parsed Change Request ID: $(echo '${{ steps.change_request.outputs.change_request_response }}' | jq .result.sys_id)"
26+
echo "Change Request Response: ${{ steps.change_request.outputs.change-request-number }}"
27+
echo "Change Request Sys ID: ${{ steps.change_request.outputs.change-request-sys-id }}"
28+
29+
# Additional debug information
30+
echo "::debug::GitHub Context: ${{ toJSON(github) }}"
31+
echo "::debug::Job Name: ServiceNow DevOps Change"
32+
echo "::debug::Instance URL: https://dev208227.service-now.com"
2533
shell: bash
2634
deploy:
2735
name: 'Deploy'

0 commit comments

Comments
 (0)