Skip to content
This repository was archived by the owner on Jul 1, 2024. It is now read-only.

fix condition

fix condition #9

Workflow file for this run

name: scoreboard
on:
push:
branches: [ main ]
workflow_dispatch:
branches: [ main ]
jobs:
scores:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- run: curl --location '${{ vars.BASE_URL }}scoreboard' --header ${{ secrets.TOKEN }} -o ${{ vars.SCORE_FILE }}
- name: parse score
id: score
run: echo "latest=$(python3 util.py ${{ vars.SCORE_FILE }})" >> $GITHUB_OUTPUT
- name: Discord post
if: ${{ env.DISCORD_WEBHOOK != '' && vars.DISCORD_ON != 0 }}
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
uses: Ilshidur/action-discord@master
with:
args: "Scoreboard: ${{ steps.score.outputs.latest }}"