This PR mainly refactors the code by extracting a "core" package which is then used by the "backend" and "frontend" apps. Apart from this the PR also contains several smaller changes like fixing dependabot, upgrading dependencies, aligned "package.json" files, added tests, ... addresses step 1 of #32 closes #136 --------- Co-authored-by: Marco Pasqualetti <marco.pasqualetti@live.com>
32 lines
1.2 KiB
YAML
32 lines
1.2 KiB
YAML
name: Trigger server to update cached data
|
|
on:
|
|
schedule:
|
|
# ┌───────────── minute (0 - 59)
|
|
# │ ┌───────────── hour (0 - 23)
|
|
# │ │ ┌───────────── day of the month (1 - 31)
|
|
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
|
|
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
|
|
# │ │ │ │ │
|
|
# │ │ │ │ │
|
|
# │ │ │ │ │
|
|
# * * * * *
|
|
- cron: "45 * * * *"
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
triggerRepeatRecent:
|
|
name: Trigger server to update cached data.
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Make Request
|
|
id: myRequest
|
|
uses: fjogeleit/http-request-action@551353b829c3646756b2ec2b3694f819d7957495 # v2
|
|
with:
|
|
url: "https://github-stats-extended.vercel.app/api/repeat-recent"
|
|
method: "POST"
|
|
timeout: "300000"
|
|
- name: Show Response
|
|
run: |
|
|
echo ${{ steps.myRequest.outputs.response }}
|
|
echo ${{ steps.myRequest.outputs.status }}
|