name: Update module permissions: contents: write on: workflow_dispatch: schedule: - cron: '0 0 * * *' jobs: update: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 with: submodules: recursive - name: Update module run: | git submodule update --init --recursive --checkout -f --remote git config --global user.name "GitHub Action" git config --global user.email "noreply@github.com" git commit -am "Autoupdate xmrig" || true git push