Submodule Sync #1684
This file contains hidden or 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
| # This is a basic workflow to help you get started with Actions | |
| name: Submodule Sync | |
| on: | |
| schedule: | |
| - cron: 0 5 * * * | |
| workflow_dispatch: | |
| jobs: | |
| sync: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| shell: bash | |
| # Steps represent a sequence of tasks that will be executed as part of the job | |
| steps: | |
| # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
| - uses: actions/checkout@v2 | |
| - name: Update submodules | |
| run: | | |
| git submodule update --init --recursive | |
| git submodule update --remote | |
| - name: Commit update | |
| run: | | |
| git config --local user.email "bidevteam@cornell.edu" | |
| git config --local user.name "rob-ouser-bi" | |
| git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} | |
| git commit -am "Auto updated submodule references" && git push || echo "No changes to commit" |