Replies: 8 comments 19 replies
-
一个简单尝试,但是同步uosc还是出问题了 name: Sync Files
on:
workflow_dispatch:
schedule:
# run every 4 hours
- cron: '20 */4 * * *'
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
# sync uosc
- name: Download uosc
uses: robinraju/release-downloader@v1.8
with:
repository: "tomasklaen/uosc"
latest: true
extract: true
fileName: "uosc.zip"
out-file-path: "scripts"
- name: Sync uosc
uses: actions-js/push@master
with:
github_token: ${{ secrets.GH_PAT }}
- name: Run GitHub File Sync
uses: BetaHuhn/repo-file-sync-action@v1
with:
GH_PAT: ${{ secrets.GH_PAT }} |
Beta Was this translation helpful? Give feedback.
-
https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2204-Readme.md github cli是预装好的
我测试这个action能用啊,是你路径理解错了吧,它会把文件解压到scripts里 |
Beta Was this translation helpful? Give feedback.
-
不会哈哈,我还是直接linux操作算了,只会R和python |
Beta Was this translation helpful? Give feedback.
-
- name: Sync uosc
run: |
git config --global user.name 'Yunuuuu'
git config --global user.email 'your-email@users.noreply.github.com'
git commit -m "New release version" scripts/uosc
git push |
Beta Was this translation helpful? Give feedback.
-
这个的用例是什么。。。如果是一个字不改前面提到的 mpv_manager 就可以 |
Beta Was this translation helpful? Give feedback.
-
用github action可以自动管理所有脚本了,https://github.com/Yunuuuu/mpv-config/tree/main/.github/workflows |
Beta Was this translation helpful? Give feedback.
-
对于每一台电脑,可以直接命令行同步脚本, linux也类似
|
Beta Was this translation helpful? Give feedback.
-
https://github.com/natural-harmonia-gropius/mpv-config/blob/master/.github/workflows/update.yml 现在支持文件夹了 问题列表:
|
Beta Was this translation helpful? Give feedback.
-
对于un-release 的scripts,可以直接使用这个https://github.com/BetaHuhn/repo-file-sync-action
对于released的scripts,例如 uosc, 目前没找到很好的Action来处理,不知道有没有很会GitHub action的人给一个示例
Beta Was this translation helpful? Give feedback.
All reactions