Add gitea workflow
This commit is contained in:
parent
7c9597c938
commit
0222654197
33
.gitea/workflows/workflow.yml
Normal file
33
.gitea/workflows/workflow.yml
Normal file
@ -0,0 +1,33 @@
|
||||
name: Workflows
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
schedule:
|
||||
- cron: '0 0 * * *' # Every day at midnight
|
||||
|
||||
jobs:
|
||||
wake:
|
||||
name: Wake Runner
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Wakeup Runner
|
||||
run: |
|
||||
curl https://idlesleep.wolproxy.seeseepuff.be/status
|
||||
|
||||
run:
|
||||
name: Run script
|
||||
runs-on: ubuntu-amd64
|
||||
container:
|
||||
image: gitea.seeseepuff.be/archlinux/archlinux:latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Ensure image is up-to-date
|
||||
run: |
|
||||
sudo pacman -Syu --noconfirm
|
||||
|
||||
- name: Run script
|
||||
run: |
|
||||
TOkEN=${{ secrets.TOKEN }} go run .
|
Loading…
x
Reference in New Issue
Block a user