Skip to content

Commit

Permalink
Updated example workflow files
Browse files Browse the repository at this point in the history
  • Loading branch information
maheshganjiSnc committed Aug 9, 2023
1 parent 2003898 commit 66d51cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- name: Servicenow Update Change Details
uses: ServiceNow/servicenow-devops-update-change@v2.0
uses: ServiceNow/servicenow-devops-update-change@v2.0.0
id: update
with:
change-request-number: 'CHG0030004'
devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }}
devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }}
instance-url: ${{ secrets.SN_INSTANCE_URL }}
context-github: ${{ toJSON(github) }}
change-request-details: '{"state":"3","close_code":"successful", "close_notes":"Closing during Github Actions CustomActionUpdate","short_description": "Test description in Updated by Github custom Action","description":"Automated Software Deployment."}'
change-request-details: '{"short_description": "Test description in Updated by Github custom Action","description":"Automated Software Deployment.","close_code":"successful", "close_notes":"Closing during Github Actions CustomActionUpdate","state":"3"}'
- name: Output of UpdateChangeDetails
run: echo "The Status of Update Change Request Details => ${{ steps.update.outputs.status }}"
4 changes: 2 additions & 2 deletions .github/workflows/wokflowToken.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- name: Servicenow Update Change Details
uses: ServiceNow/servicenow-devops-update-change@v2.0
uses: ServiceNow/servicenow-devops-update-change@v2.0.0
id: update
with:
change-request-number: 'CHG0030004'
devops-integration-token: ${{ secrets.SN_DEVOPS_INTEGRATION_TOKEN }}
tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }}
instance-url: ${{ secrets.SN_INSTANCE_URL }}
context-github: ${{ toJSON(github) }}
change-request-details: '{"state":"3","close_code":"successful", "close_notes":"Closing during Github Actions CustomActionUpdate","short_description": "Test description in Updated by Github custom Action","description":"Automated Software Deployment."}'
change-request-details: '{"short_description": "Test description in Updated by Github custom Action","description":"Automated Software Deployment.","close_code":"successful", "close_notes":"Closing during Github Actions CustomActionUpdate","state":"3"}'
- name: Output of UpdateChangeDetails
run: echo "The Status of Update Change Request Details => ${{ steps.update.outputs.status }}"

0 comments on commit 66d51cb

Please # to comment.