Skip to content

Commit bc6a6f6

Browse files
committed
feat: sync cron job
1 parent 4051fad commit bc6a6f6

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Sync Deel Employees
2+
on:
3+
schedule:
4+
- cron: '0 12 * * *'
5+
workflow_dispatch:
6+
7+
jobs:
8+
syncDeelEmployees:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Call syncDeelEmployees endpoint
12+
uses: fjogeleit/http-request-action@v1
13+
with:
14+
url: '${{ vars.BASE_URL }}/syncDeelEmployees'
15+
method: 'POST'
16+
customHeaders: '{"Authorization": "Bearer ${{ secrets.SYNC_ENDPOINT_KEY }}"}'
17+
- name: Show Response
18+
run: |
19+
echo ${{ steps.syncDeelEmployees.outputs.status }}
20+
echo ${{ steps.syncDeelEmployees.outputs.response }}

0 commit comments

Comments
 (0)