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
#!/bin/bash | |
# 第一步:设定安装镜像 | |
echo "设定安装镜像源为清华大学镜像..." | |
export DOWNLOAD_URL="https://mirrors.tuna.tsinghua.edu.cn/docker-ce" | |
# 第二步:脚本一键安装 | |
echo "开始一键安装 Docker..." | |
wget -O- https://gitee.com/tech-shrimp/docker_installer/releases/download/latest/linux.sh | sudo -E sh |
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
name: extract a zip file # 工作流程的名称 | |
on: | |
push: # 当有代码推送时触发 | |
paths: # 触发条件:指定的文件路径 | |
- '**/*.zip' # 当任何文件夹下的 .zip 文件发生变化时触发 | |
workflow_dispatch: # 允许手动触发工作流程 | |
jobs: | |
unzip-and-organize: # 工作流程中的任务名为 unzip-and-organize |