cave-story-randomizer/.github/workflows/daily.yml

33 lines
860 B
YAML
Raw Normal View History

2022-01-08 02:28:16 +00:00
name: "MALCO's Daily Challenge"
2022-01-08 01:53:34 +00:00
on:
schedule:
- cron: '53 15 * * *' # 9:53 AM, UTC-6
2022-01-08 02:11:45 +00:00
workflow_dispatch:
2022-01-08 01:53:34 +00:00
jobs:
Build:
runs-on: '${{ matrix.os }}'
strategy:
matrix:
os:
2022-01-11 22:47:39 +00:00
- ubuntu-latest
2022-01-08 01:53:34 +00:00
steps:
- uses: actions/checkout@v2
with:
ref: 'stable'
2022-01-08 01:53:34 +00:00
- name: Install dependencies (Ubuntu)
if: runner.os == 'Linux'
run: |
sudo add-apt-repository -y ppa:bartbes/love-stable
sudo apt-get -q update
2022-01-11 23:31:24 +00:00
sudo apt-get install -y xvfb love
2022-01-08 01:53:34 +00:00
- name: Generate Daily
env:
WEBHOOK: ${{ secrets.WEBHOOK }}
run: |
cd $GITHUB_WORKSPACE
2022-01-11 23:31:24 +00:00
sudo xvfb-run -a --server-args="-screen 0 1024x768x24" love src --daily
2022-01-08 01:53:34 +00:00
cat daily.txt
curl -H "Content-Type: application/json" -X POST -d @daily.txt "$WEBHOOK"