Skip to content

Commit

Permalink
event added
Browse files Browse the repository at this point in the history
  • Loading branch information
hafijul233 committed Jan 29, 2025
1 parent e0c6c3e commit d39a8f8
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/dispatch-change-event.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: "Dispatch Change Event"
on:
push:
branches:
- main

jobs:
build:
name: Deployment to Server
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Executing the CURL Command
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.UAT_HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.UAT_KEY_FILE }}
script: |
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.REPO_DISPATCH_TOKEN }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/mt-technologies-ltd/lebu-pay-api/dispatches \
-d '{"event_type":"AIRTIME_MAIN_CHANGE"}'

0 comments on commit d39a8f8

Please sign in to comment.