casper-i18n/.github/workflows/autoupdate.yml

32 lines
874 B
YAML
Raw Normal View History

2022-03-09 02:53:48 +00:00
name: autoupdate
on:
schedule:
2022-03-09 03:12:12 +00:00
- cron: '0 0 * * *'
2023-05-22 19:42:38 +00:00
workflow_dispatch:
2022-03-09 02:53:48 +00:00
jobs:
merge-upstream:
runs-on: ubuntu-latest
steps:
2023-05-22 19:42:38 +00:00
- uses: actions/checkout@v3
2022-03-09 02:53:48 +00:00
with:
fetch-depth: 0
2022-03-09 03:12:12 +00:00
- name: Setup bot
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions"
2022-03-29 18:43:37 +00:00
git config --local pull.rebase false
2022-03-09 02:53:48 +00:00
- 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
2022-03-09 03:12:12 +00:00
run: git pull upstream main --tags
2022-03-09 02:53:48 +00:00
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
tags: true