-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
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)
81e83bc
Merge branch 'master' of https://github.com/DIYgod/RSSHub
actions-user e2342a6
Merge branch 'master' of https://github.com/DIYgod/RSSHub
actions-user 2054ba3
Merge pull request #2 from DIYgod/master
pull[bot] 38d7b16
Merge pull request #3 from DIYgod/master
pull[bot] 01dac31
Merge pull request #4 from DIYgod/master
pull[bot] e7cd48b
Merge branch 'master' of https://github.com/DIYgod/RSSHub
actions-user 107b80d
Merge pull request #5 from DIYgod/master
pull[bot] 10903c0
Merge pull request #6 from DIYgod/master
pull[bot] a6fc1ac
Merge pull request #7 from DIYgod/master
pull[bot] 33fa351
Merge pull request #8 from DIYgod/master
pull[bot] 7af2882
Merge pull request #9 from DIYgod/master
pull[bot] 6d7a15a
Merge pull request #10 from DIYgod/master
pull[bot] 7c88e25
Merge pull request #11 from DIYgod/master
pull[bot] a50baf3
Merge pull request #12 from DIYgod/master
pull[bot] ef82530
Merge branch 'master' of https://github.com/DIYgod/RSSHub
actions-user faeecc4
Merge pull request #13 from DIYgod/master
pull[bot] 6e39f6b
Merge branch 'master' of https://github.com/DIYgod/RSSHub
actions-user 46eb951
Merge branch 'master' of https://github.com/DIYgod/RSSHub
actions-user 285d670
Merge pull request #14 from DIYgod/master
pull[bot] fb17f7e
Merge branch 'master' of https://github.com/DIYgod/RSSHub
actions-user 85eb11b
Merge branch 'master' of https://github.com/DIYgod/RSSHub
actions-user 127ad63
Merge pull request #15 from DIYgod/master
pull[bot] 06ecce3
Merge branch 'master' of https://github.com/DIYgod/RSSHub
actions-user c1afe7b
Merge branch 'master' of https://github.com/DIYgod/RSSHub
actions-user 2aaa615
Merge branch 'master' of https://github.com/DIYgod/RSSHub
actions-user c19a402
Merge branch 'master' of https://github.com/DIYgod/RSSHub
actions-user edff512
Merge branch 'master' of https://github.com/DIYgod/RSSHub
actions-user dc32ab6
Merge branch 'master' of https://github.com/DIYgod/RSSHub
actions-user a44c611
Merge branch 'master' of https://github.com/DIYgod/RSSHub
actions-user 3590f98
Merge branch 'master' of https://github.com/DIYgod/RSSHub
actions-user 86eb7da
Merge pull request #16 from DIYgod/master
pull[bot] ba3b500
Merge branch 'master' of https://github.com/DIYgod/RSSHub
actions-user 0727c91
Merge branch 'master' of https://github.com/DIYgod/RSSHub
actions-user bf31396
Merge branch 'master' of https://github.com/DIYgod/RSSHub
actions-user dc7e780
Merge branch 'master' of https://github.com/DIYgod/RSSHub
actions-user File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 | ||
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 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check failure
Code scanning / ESLint
enforce the consistent use of either double, or single quotes Error