-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (30 loc) · 1.12 KB
/
weekly_submit.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Weekly Submission
on:
# scheduled submission every Wednesday at 1.30 a.m.
schedule:
- cron: '30 5 * * 3'
jobs:
scheduled-submit:
runs-on: ubuntu-latest
steps:
# Get the list of changes from a json file
- name: Get changes list
run: |
id: get_changes
echo "Read changes list from json"
# Trigger server-side updating and UI deploy
# --------------------------------------------
# WEBHOOK
- name: Invoke deployment hook
env:
webhook_url: ${{ secrets.WEB_HOOK_URL_DEV }}
# webhook_url: ${{ secrets.WEBHOOK_URL }}
# webhook_url: ${{ secrets.WEB_HOOK_URL_PRODUCTION }}
webhook_secret: ${{ secrets.WEB_HOOK_SECRET }}
#data: '{ "changes": ${{ toJSON(needs.validate_request.outputs.changed_files) }}, "actor" : ${{ toJSON(github.actor) }} }'
data: ${{ get_changes.outputs.changes_list }}
run: |
echo ">>> Calling custom webhook"
pip install requests
echo ">>> Pip installed"
python ./tools/.github/scripts/utils/workflow_webhook.py