geode/.github/workflows/update.yml
2022-05-03 22:20:19 -05:00

33 lines
942 B
YAML

name: Update Suite
on:
workflow_dispatch:
push:
branches:
- 'main'
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
repository: geode-sdk/suite
path: suite
ref: nightly
submodules: recursive
token: '${{ secrets.GEODE_BOT_PUSH_BIN_TOKEN }}'
- name: Update SDK
working-directory: ${{ github.workspace }}/suite/sdk
run: git checkout main
- name: Commit and push to suite
working-directory: ${{ github.workspace }}/suite
run: |
git config --local user.email "${{ secrets.GEODE_BOT_EMAIL }}"
git config --local user.name "GeodeBot"
git add -A
git commit -m "Loader update from ${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}"
git push "https://GeodeBot:${{ secrets.GEODE_BOT_PUSH_BIN_TOKEN}}@github.com/geode-sdk/suite.git"