我希望能夠在預定時間更新 GitHub 頁面。我想到的唯一方法是在預定時間重命名更新的檔案以索引并洗掉以前的索引。有沒有辦法洗掉或重命名檔案?
uj5u.com熱心網友回復:
您可以mv從 Linux 命令使用:
mv oldfile.txt newfile.txt
以下是它在作業流 (YML) 檔案中的外觀:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Rename file
run: mv oldfile.txt newfile.txt
- name: Delete file
run: rm -f file.txt
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/401437.html
標籤:github github-actions github页面
