π Refresh #856
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: π Refresh | |
on: | |
schedule: | |
- cron: "0 12 * * *" | |
workflow_dispatch: | |
jobs: | |
refresh: | |
name: Refresh | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Refresh | |
run: kotlin refresh.main.kts | |
- name: Commit changes | |
run: | | |
if ! git diff --quiet --exit-code -- README.md distributions.json; | |
then | |
git config --global user.name "Simon Marquis" | |
git config --global user.email "SimonMarquis@users.noreply.github.com" | |
git commit README.md distributions.json -m "π" | |
git push | |
echo "::notice::UPDATED" | |
else | |
echo "::notice::UP-TO-DATE" | |
fi |