Skip to content

Commit 57d0ca5

Browse files
authored
Create hacktrack.yml
1 parent 1b8e82f commit 57d0ca5

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/hacktrack.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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 }}

0 commit comments

Comments
 (0)