Skip to content

Commit

Permalink
Modify Change Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mgazzali committed Jan 21, 2025
1 parent 08b54d5 commit 6c2a67b
Showing 1 changed file with 15 additions and 19 deletions.
34 changes: 15 additions & 19 deletions .github/workflows/blank.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,27 +55,23 @@ jobs:
echo test, and deploy your project.
ServiceNowDevOpsChange:
# jobs that must complete successfully before this job will run
needs: test
# type of machine to run the job on
runs-on: ubuntu-latest
name: 'ServiceNow DevOps Change'
steps:
- name: ServiceNow Change
uses: ServiceNow/[email protected]
with:
# Devops Integration Token
devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }}
# ServiceNow Instance URL
instance-url: ${{ secrets.SN_INSTANCE_URL }}
# Orchestration Tool Id
tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }}
# GitHub Context
context-github: ${{ toJSON(github) }}
# Display Name of the Job
job-name: 'ServiceNow DevOps Change'
change-request: '{"setCloseCode":"true","attributes":{"short_description":"Automated Software Deployment Change Request","description":"Automated Software Deployment Change Request, Created via DevOps Change Velocity & GitHub Integration.","implementation_plan":"Software update is tested and results can be found in Test Summaries Tab; When the change is approved the implementation happens automated by the CICD pipeline within the change planned start and end time window.","backout_plan":"When software fails in production, the previous software release will be re-deployed.","test_plan":"Testing if the software was successfully deployed"}}'
# You can specify the requested_by attribute either with name or sys_id. Example: "requested_by":{"name": "Test User"} or "requested_by": "62826bf03710200044e0bfc8bcbe5df1"
# You can specify the assignment_group attribute either with name or sys_id. Example: "assignment_group":{"name": "Change Approval Team"} or "assignment_group": "5f721d93c0a8010e015533746de18bf9"
# start_date: This is the planned start date
# end_date: This is the planned end date
- name: ServiceNow Change
uses: ServiceNow/[email protected]
with:
# Devops Integration Token
devops-integration-user-name: ${{ secrets.SN_USER }}
devops-integration-user-password: ${{ secrets.SN_PASSWORD }}
instance-url: ${{ secrets.SN_INSTANCE_URL }}
tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }}
# GitHub Context
context-github: ${{ toJSON(github) }}
# Display Name of the Job
job-name: 'ServiceNow DevOps Change'
change-request: '{"setCloseCode":"true","attributes":{"short_description":"Automated Software Deployment Change Request","description":"Automated Software Deployment Change Request, Created via DevOps Change Velocity & GitHub Integration.","implementation_plan":"Software update is tested and results can be found in Test Summaries Tab; When the change is approved the implementation happens automated by the CICD pipeline within the change planned start and end time window.","backout_plan":"When software fails in production, the previous software release will be re-deployed.","test_plan":"Testing if the software was successfully deployed"}}'
interval: '100'
timeout: '3600'

0 comments on commit 6c2a67b

Please sign in to comment.