2023-12-16 21:37:16 +08:00
|
|
|
name: Uptime Report
|
2023-12-13 18:19:00 +08:00
|
|
|
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
- master
|
|
|
|
schedule:
|
|
|
|
- cron: '@hourly'
|
|
|
|
jobs:
|
|
|
|
Explore-Gitea-Actions:
|
2023-12-13 21:02:17 +08:00
|
|
|
runs-on: linux
|
2023-12-13 18:19:00 +08:00
|
|
|
steps:
|
|
|
|
- run: |
|
|
|
|
echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
|
|
|
|
echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
|
|
|
|
echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
|
|
|
|
echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
|
|
|
|
echo "🖥️ The workflow is now ready to test your code on the runner."
|
|
|
|
- name: Check out repository code
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
2023-12-13 20:56:11 +08:00
|
|
|
- run: |
|
2023-12-16 21:39:19 +08:00
|
|
|
curl $UPTIME_WEBHOOK_URL
|
2023-12-16 21:37:16 +08:00
|
|
|
env:
|
2023-12-16 21:37:45 +08:00
|
|
|
UPTIME_WEBHOOK_URL: ${{ secrets.UPTIME_WEBHOOK_URL }}
|
2023-12-13 18:19:00 +08:00
|
|
|
- run: echo "🍏 This job's status is ${{ job.status }}."
|