Skip to content

Commit

Permalink
feat: adding script to dispatch github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
venkatamutyala committed Oct 14, 2024
1 parent d0dd3ff commit 6f1fdc9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ RUN mkdir /app
ADD github-backup.sh /usr/bin/backup-github
ADD vault-backup.sh /usr/bin/backup-vault
ADD s3-backup.sh /usr/bin/s3-backup
ADD github-workflow-dispatcher.sh /usr/bin/github-workflow-dispatcher


WORKDIR /app
Expand Down
10 changes: 10 additions & 0 deletions github-workflow-dispatcher.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
set -e


curl \
-X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${GITHUB_TOKEN}" \
${GITHUB_DISPATCH_URL} \
-d '{"ref":"refs/heads/main"}'

0 comments on commit 6f1fdc9

Please sign in to comment.