🐷重构action,将构建产物放到另一分支(@CCKNBC)
This commit is contained in:
22
.github/workflows/friend_circle_lite.yml
vendored
22
.github/workflows/friend_circle_lite.yml
vendored
@@ -64,29 +64,15 @@ jobs:
|
||||
- name: Commit changes
|
||||
run: |
|
||||
mkdir pages
|
||||
cp -r main index.html all.json errors.json pages/
|
||||
cp -r main index.html all.json errors.json ./rss_subscribe/last_articles.json pages/
|
||||
cd pages
|
||||
git init
|
||||
git add .
|
||||
git commit -m "⏱️ $(date +"%Z %Y-%m-%d %A %H:%M:%S") Updated By GitHub Actions"
|
||||
git commit -m "⏱️ $(date +"%Y年%m月%d日-%H时%M分") GitHub Actions定时更新"
|
||||
git push --force https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git HEAD:gh-pages
|
||||
|
||||
- name: Delete Workflow Runs
|
||||
uses: Mattraks/delete-workflow-runs@v2
|
||||
with:
|
||||
retain_days: 90
|
||||
keep_minimum_runs: 6
|
||||
|
||||
keepalive-workflow:
|
||||
name: Keepalive Workflow
|
||||
if: ${{ always() }}
|
||||
needs: friend-circle-lite
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
actions: write
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: gautamkrishnar/keepalive-workflow@v2
|
||||
with:
|
||||
committer_username: "github-actions[bot]"
|
||||
committer_email: "github-actions[bot]@users.noreply.github.com"
|
||||
retain_days: 30
|
||||
keep_minimum_runs: 6
|
||||
Reference in New Issue
Block a user