-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mod-misty] ci: upload to prerelease to avoid artifact expire
- Loading branch information
Showing
2 changed files
with
79 additions
and
7 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Scheduled Merge Remote Action | ||
on: | ||
schedule: | ||
- cron: '20 * * * *' | ||
# scheduled for 00:00 everyday | ||
workflow_dispatch: | ||
|
||
jobs: | ||
merge-upstream: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: master # set the branch to merge to | ||
fetch-depth: 0 | ||
- name: Setup committer | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "NyaMisty" | ||
- name: Merge Upstream | ||
run: | | ||
git remote add -f upstream "https://github.com/rclone/rclone" && | ||
git remote -v && | ||
git branch --all && | ||
git config --list && | ||
git checkout master | ||
git rebase -v --fork-point --rebase-merges --keep-base master upstream/master | ||
git rebase --abort || true; | ||
git branch -f master HEAD; git checkout master | ||
#- name: Prepare to push | ||
# run: git branch -f master | ||
- name: Push changes | ||
uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.WORKER_GITHUB_PAT }} | ||
branch: ${{ github.ref }} | ||
- uses: gautamkrishnar/keepalive-workflow@master # using the workflow with default settings |