Rebase against original repo #296
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rebase against original repo | |
#on: [push] | |
on: | |
schedule: | |
# https://pubs.opengroup.org/onlinepubs/9699919799/utilities/crontab.html#tag_20_25_07 | |
# * is a special character in YAML so you have to quote this string | |
- cron: '0 1 * * 6' | |
env: | |
GITHUB_TOKEN: ${{ secrets.github_token }} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Git configuration | |
run: | | |
git config user.name "Passw" | |
git config user.email "Passw_Passw@163.com" | |
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git | |
git remote -vv | |
git branch -vv | |
- name: RUN `git pull master -r` | |
run: | | |
git remote add up https://github.com/wine-mirror/wine.git | |
git pull up master -r | |
git push origin HEAD:master --force |