We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7598ce0 commit 8fe068bCopy full SHA for 8fe068b
2 files changed
.github/workflows/manual.yml
@@ -32,5 +32,16 @@ jobs:
32
cd .github/workflows/
33
pwd
34
cat ./"${{ inputs.file }}"
35
+
36
37
+# to run from cli --- gh workflow run manual.yml -f name=vikram -f file=sample.txt
38
+# via api
39
+#curl -X POST -H "Accept: application/vnd.github+json" -H "Authorization: Bearer $GITHUB_TOKEN" https://api.github.com/repos/2vikram22/Github-Examples/actions/workflows/manual.yml/dispatches -d '{
40
+# "ref": "main",
41
+# "inputs": {
42
+# "name": "vikram",
43
+# "file": "sample.txt"
44
+# }
45
+# }'
46
47
.github/workflows/webhook_repository_dispatch.yml
@@ -0,0 +1,21 @@
1
+name: "repoitory_dispathc"
2
3
+on:
4
+ repository_dispatch:
5
+ types:
6
+ - webhook
7
+ - web2
8
9
+jobs:
10
+ job1:
11
+ runs-on: ubuntu-latest
12
13
+ steps:
14
+ - name: to print the event
15
+ run: echo "event is ${{ github.event_name }}"
16
17
18
19
20
21
0 commit comments