Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
sampath-methuku-servicenow committed May 9, 2024
2 parents 0d33599 + 1c987a8 commit 373e092
Show file tree
Hide file tree
Showing 6 changed files with 486 additions and 468 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This custom action needs to be added at step level in a job to create change in
## Step 2: Configure Secrets in your GitHub Ogranization or GitHub repository
On GitHub, go in your organization settings or repository settings, click on the _Secrets > Actions_ and create a new secret.

For token based authentication which is available from v3.1.0, create secrets called
For token based authentication which is available from v4.0.0, create secrets called
- `SN_DEVOPS_INTEGRATION_TOKEN` required for token based authentication
- `SN_INSTANCE_URL` your ServiceNow instance URL, for example **https://test.service-now.com**
- `SN_ORCHESTRATION_TOOL_ID` only the **sys_id** is required for the GitHub tool created in your ServiceNow instance
Expand All @@ -27,15 +27,15 @@ Use needs to configure the identified upstream job. See [test.yml](.github/workf

## Step 4: Configure the GitHub Action if need to adapt for your needs or workflows

# For Token based Authentication which is available from v3.1.0 at ServiceNow instance
# For Token based Authentication which is available from v4.0.0 at ServiceNow instance
```yaml
deploy:
name: Deploy
needs: <upstream job>
runs-on: ubuntu-latest
steps:
- name: ServiceNow Change
uses: ServiceNow/servicenow-devops-change@v3.1.0
uses: ServiceNow/servicenow-devops-change@v4.0.0
id: create
with:
devops-integration-token: ${{ secrets.SN_DEVOPS_INTEGRATION_TOKEN }}
Expand All @@ -62,7 +62,7 @@ deploy:
runs-on: ubuntu-latest
steps:
- name: ServiceNow Change
uses: ServiceNow/servicenow-devops-change@v3.1.0
uses: ServiceNow/servicenow-devops-change@v4.0.0
with:
devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }}
devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }}
Expand Down Expand Up @@ -122,19 +122,19 @@ The time in seconds to wait between trying the API. The default value is 100 sec

### `timeout`

The max. time in seconds to wait until the action should fail. The default value is 3600 seconds.
The maximum time in seconds to wait until the action should fail. The default value is 3600 seconds.

### `changeCreationTimeOut`

The maximum time in seconds to wait for change creation. The default value is 3600 seconds.

### `abortOnChangeCreationFailure`

This value will be used to resume or abort the pipeline if the change is not created within the mentioned time period (changeCreationTimeOut). The default value is true seconds.
This value will be used to resume or abort the pipeline if the change is not created within the mentioned time period (changeCreationTimeOut). The default value is true.

### `abortOnChangeStepTimeout`

This value will be used to resume or abort the pipeline if the change step is not completed within the mentioned time period (timeout). The default value is true seconds.
This value will be used to resume or abort the pipeline if the change step is not completed within the mentioned time period (timeout). The default value is true.

## Outputs

Expand Down
Loading

0 comments on commit 373e092

Please sign in to comment.