Opengist Logo 清羽飞扬の代码片段

Explore

  • All gists
  • Topics
  • Users
个人主页 站长博客
Give feedback on the new UI Powered by Opengist ⋅ 43ms

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Login Register
a

action

Recently created Least recently created Recently updated Least recently updated
LiuShen

LiuShen / AppStore完善同步更新Action脚本

Last active 2 months ago 1panel action auto

AppStore完善同步更新Action脚本,支持强制同步,自动合入,解决冲突

0 0 2
1 name: Sync commits to CNB (force)
2
3 on:
4 schedule:
5 - cron: "0 0 * * *" # 每天凌晨 0 点强制同步(兜底)
6 - cron: "0 */6 * * *" # 每 6 小时检查一次
7 push:
8 branches:
9 - main
10 workflow_call: # 允许被其他工作流调用
LiuShen

LiuShen / Action实现刷新EO缓存

Last active 2 months ago action auto cache edgeone eo github python tencent

通过Python,在Github Action中实现EO站点缓存刷新

0 0 2
1 import os
2 import json
3 from tencentcloud.common import credential
4 from tencentcloud.teo.v20220901 import teo_client, models
5 from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException
6
7 try:
8 cred = credential.Credential(
9 os.getenv("TENCENTCLOUD_SECRET_ID"),
10 os.getenv("TENCENTCLOUD_SECRET_KEY")
LiuShen

LiuShen / github action构建hexo源码

Last active 2 months ago action github hexo npm

github action构建hexo源码,yml文件分享

0 0 1
1 name: 自动部署
2
3 on:
4 push:
5 branches:
6 - main
7
8 release:
9 types:
10 - published