Auto update #2889
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: Auto update | |
on: | |
schedule: | |
- cron: "0 */12 * * *" | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Run update script | |
run: yarn build | |
- name: Push changes | |
run: | | |
git config --global user.email "cli@github.com" | |
git config --global user.name "Github Actions" | |
git add bundles/* | |
git commit -m "[auto-update]" | |
git push https://MindustryInside:${{ secrets.API_TOKEN_GITHUB }}@github.com/MindustryInside/L1337n |