mirror of
https://github.com/Maks1mS/xmrig-zero-donation.git
synced 2024-12-23 16:02:58 +03:00
Maxim Slipenko
5e66bf66eb
https://docs.github.com/en/actions/using-workflows/triggering-a-workflow#triggering-a-workflow-from-a-workflow
25 lines
645 B
YAML
25 lines
645 B
YAML
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 }}
|
|
- name: Update module
|
|
run: |
|
|
git submodule update --init --recursive --checkout -f --remote
|
|
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
|
|
git push |