Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(workflow) add audo fork sync workflow (#14003) #14004

Closed
wants to merge 36 commits into from
Closed
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
bcdc875
feat(workflow) add audo fork sync workflow (#14003)
Dec 10, 2023
81e83bc
Merge branch 'master' of https://github.com/DIYgod/RSSHub
actions-user Dec 11, 2023
e2342a6
Merge branch 'master' of https://github.com/DIYgod/RSSHub
actions-user Dec 12, 2023
2054ba3
Merge pull request #2 from DIYgod/master
pull[bot] Dec 13, 2023
38d7b16
Merge pull request #3 from DIYgod/master
pull[bot] Dec 14, 2023
01dac31
Merge pull request #4 from DIYgod/master
pull[bot] Dec 15, 2023
e7cd48b
Merge branch 'master' of https://github.com/DIYgod/RSSHub
actions-user Dec 16, 2023
107b80d
Merge pull request #5 from DIYgod/master
pull[bot] Dec 16, 2023
10903c0
Merge pull request #6 from DIYgod/master
pull[bot] Dec 17, 2023
a6fc1ac
Merge pull request #7 from DIYgod/master
pull[bot] Dec 18, 2023
33fa351
Merge pull request #8 from DIYgod/master
pull[bot] Dec 19, 2023
7af2882
Merge pull request #9 from DIYgod/master
pull[bot] Dec 19, 2023
6d7a15a
Merge pull request #10 from DIYgod/master
pull[bot] Dec 20, 2023
7c88e25
Merge pull request #11 from DIYgod/master
pull[bot] Dec 20, 2023
a50baf3
Merge pull request #12 from DIYgod/master
pull[bot] Dec 21, 2023
ef82530
Merge branch 'master' of https://github.com/DIYgod/RSSHub
actions-user Dec 22, 2023
faeecc4
Merge pull request #13 from DIYgod/master
pull[bot] Dec 22, 2023
6e39f6b
Merge branch 'master' of https://github.com/DIYgod/RSSHub
actions-user Dec 23, 2023
46eb951
Merge branch 'master' of https://github.com/DIYgod/RSSHub
actions-user Dec 24, 2023
285d670
Merge pull request #14 from DIYgod/master
pull[bot] Dec 24, 2023
fb17f7e
Merge branch 'master' of https://github.com/DIYgod/RSSHub
actions-user Dec 26, 2023
85eb11b
Merge branch 'master' of https://github.com/DIYgod/RSSHub
actions-user Dec 27, 2023
127ad63
Merge pull request #15 from DIYgod/master
pull[bot] Dec 27, 2023
06ecce3
Merge branch 'master' of https://github.com/DIYgod/RSSHub
actions-user Dec 28, 2023
c1afe7b
Merge branch 'master' of https://github.com/DIYgod/RSSHub
actions-user Dec 29, 2023
2aaa615
Merge branch 'master' of https://github.com/DIYgod/RSSHub
actions-user Dec 30, 2023
c19a402
Merge branch 'master' of https://github.com/DIYgod/RSSHub
actions-user Dec 31, 2023
edff512
Merge branch 'master' of https://github.com/DIYgod/RSSHub
actions-user Jan 1, 2024
dc32ab6
Merge branch 'master' of https://github.com/DIYgod/RSSHub
actions-user Jan 2, 2024
a44c611
Merge branch 'master' of https://github.com/DIYgod/RSSHub
actions-user Jan 3, 2024
3590f98
Merge branch 'master' of https://github.com/DIYgod/RSSHub
actions-user Jan 4, 2024
86eb7da
Merge pull request #16 from DIYgod/master
pull[bot] Jan 4, 2024
ba3b500
Merge branch 'master' of https://github.com/DIYgod/RSSHub
actions-user Jan 5, 2024
0727c91
Merge branch 'master' of https://github.com/DIYgod/RSSHub
actions-user Jan 6, 2024
bf31396
Merge branch 'master' of https://github.com/DIYgod/RSSHub
actions-user Jan 7, 2024
dc7e780
Merge branch 'master' of https://github.com/DIYgod/RSSHub
actions-user Jan 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Upstream Sync

permissions:
contents: write

on:
schedule:
- cron: "0 0 * * *" # every day

Check failure

Code scanning / ESLint

enforce the consistent use of either double, or single quotes Error

Strings must use singlequote.
workflow_dispatch:

Check failure

Code scanning / ESLint

disallow empty mapping values Error

Empty mapping values are forbidden.

jobs:
sync_latest_from_upstream:
name: Sync latest commits from upstream repo
runs-on: ubuntu-latest
if: ${{ github.event.repository.fork }}

steps:
# Step 1: run a standard checkout action
- name: Checkout target repo
uses: actions/checkout@v3

# Step 2: run the sync action
- name: Sync upstream changes
id: sync
uses: aormsby/Fork-Sync-With-Upstream-action@v3.4
with:
upstream_sync_repo: DIYgod/RSSHub
upstream_sync_branch: master
target_sync_branch: master
target_repo_token: ${{ secrets.GITHUB_TOKEN }} # automatically generated, no need to set

# Set test_mode true to run tests instead of the true action!!
test_mode: false

- name: Sync check
if: failure()
run: |
echo "[Error] 由于上游仓库的 workflow 文件变更,导致 GitHub 自动暂停了本次自动更新,你需要手动 Sync Fork 一次
echo "[Error] Due to a change in the workflow file of the upstream repository, GitHub has automatically suspended the scheduled automatic update. You need to manually sync your fork.
exit 1