xmrig-zero-donation/.github/workflows/update-upstream.yml

25 lines
645 B
YAML
Raw Normal View History

2023-02-17 11:53:08 +03:00
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
token: ${{ secrets.PAT }}
2023-02-17 11:53:08 +03:00
- name: Update module
run: |
git submodule update --init --recursive --checkout -f --remote
2023-03-23 19:15:53 +03:00
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git commit -am "[Automated action] Update xmrig" || true
2023-02-17 11:53:08 +03:00
git push