File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # This file is for ServiceNow Dev Program Hacktoberfest Tracking and can be ignored or deleted.
2+
3+ name : Record Hacktrack Event
4+ on :
5+ push :
6+ branches : main
7+ fork :
8+ branches : main
9+ issues :
10+ types : [opened, closed]
11+ branches : main
12+ pull_request_target :
13+ types : [opened, closed]
14+ branches : main
15+ jobs :
16+ deployment :
17+ if : github.repository == 'ServiceNowDevProgram/ServiceNow-GenAi-Prompt-Library'
18+ runs-on : ubuntu-latest
19+ steps :
20+ # - name: Log payload
21+ # env:
22+ # GITHUB_CONTEXT: ${{ toJson(github) }}
23+ # run: |
24+ # echo "$GITHUB_CONTEXT"
25+ - name : Contact DPR
26+ id : myRequest
27+ uses : fjogeleit/http-request-action@v1.8.1
28+ with :
29+ url : ${{ format('https://{0}.service-now.com/api/x_snc_hacktrack/hacktrack', secrets.HT_INSTANCE_NAME) }}
30+ method : ' POST'
31+ contentType : application/json
32+ data : ${{ toJson(github) }}
33+ username : ${{ secrets.HT_ADMIN_USERNAME }}
34+ password : ${{ secrets.HT_ADMIN_PASSWORD }}
35+ - name : Show Response
36+ run : echo ${{ steps.myRequest.outputs.response }}
You can’t perform that action at this time.
0 commit comments