legado/.github/workflows/autoupdatefork.yml
dependabot[bot] dcc8a57251
Bump actions/checkout from 3 to 4 (#3339)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-18 20:51:37 +08:00

27 lines
703 B
YAML

#更新fork
name: update fork
on:
schedule:
- cron: '0 16 * * *' #0点定时任务
jobs:
build:
runs-on: ubuntu-latest
if: ${{ github.event.repository.owner.id == github.event.sender.id && github.actor != 'gedoor' }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set env
run: |
git config --global user.email "github-actions@github.com"
git config --global user.name "github-actions"
- name: Update fork
run: |
git remote add upstream https://github.com/gedoor/legado.git
git remote -v
git fetch upstream
git checkout master
git merge upstream/master
git push origin master