From 6c2a67bb1b26399276088af851d7274b8901d8da Mon Sep 17 00:00:00 2001 From: "Gazzalih, Muhamad Subkee" Date: Wed, 22 Jan 2025 00:43:28 +0800 Subject: [PATCH] Modify Change Workflow --- .github/workflows/blank.yml | 34 +++++++++++++++------------------- 1 file changed, 15 insertions(+), 19 deletions(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 763cbaf..9067cf6 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -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/servicenow-devops-change@v3.0.0 - 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/servicenow-devops-change@v3.0.0 + 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'