Update scaffolder.yaml #26
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: scaffolder | |
| on: | |
| push: | |
| branches: main | |
| jobs: | |
| ServiceNowDevOpsChange: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: ServiceNow/servicenow-devops-change@main | |
| with: | |
| devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} | |
| instance-url: https://dev208227.service-now.com | |
| tool-id: 35432ff783d87210340974b6feaad3bb | |
| context-github: ${{ toJSON(github) }} | |
| job-name: 'ServiceNow DevOps Change' | |
| 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"}}' | |
| deployment-gate: '{"environment": "deploy-gates-demo", "jobName": "Deploy"}' | |
| deploy: | |
| name: 'Deploy' | |
| needs: ServiceNowDevOpsChange | |
| runs-on: ubuntu-latest | |
| environment: deploy-gates-demo | |
| steps: | |
| - name: Run deployment scripts | |
| run: echo Completed Deployment | |