mirror of
https://github.com/GenZmeY/casper-i18n.git
synced 2024-11-10 02:28:02 +00:00
add autoupdate workflow
This commit is contained in:
parent
e351f54392
commit
d4cca6d6c1
25
.github/workflows/autoupdate.yml
vendored
Normal file
25
.github/workflows/autoupdate.yml
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
name: autoupdate
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 0 * * 6'
|
||||
|
||||
jobs:
|
||||
merge-upstream:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Add upstream repo
|
||||
run: git remote add upstream https://github.com/TryGhost/Casper.git
|
||||
- name: Checkout master
|
||||
run: git checkout master
|
||||
- name: Merge upstream
|
||||
run: git pull upstream main
|
||||
- name: Push changes
|
||||
uses: ad-m/github-push-action@master
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
branch: ${{ github.ref }}
|
||||
tags: true
|
Loading…
Reference in New Issue
Block a user