Check new factorio versions #295
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: "Update factorio versions" | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
workflow_dispatch: | |
jobs: | |
update-factorio: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: DeterminateSystems/nix-installer-action@main | |
- uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.FACTORIO_UPDATE_TOKEN }} | |
- name: Update script | |
run: ./pkgs/factorio-headless/update.py | |
- name: Commit & Push | |
run: | | |
git config --global user.name "Nick Ballard" | |
git config --global user.email "[email protected]" | |
if git commit -am "Automatically update factorio version"; then | |
git push | |
fi |