name:'Tencent COS Action'description:'GitHub Action for Tencent COS Command'author:'zkqiang <zkqiang@126.com>'branding:icon:'cloud'color:'blue'inputs:args:description:'COSCMD args'required:truesecret_id:description:'Tencent cloud SecretId'required:truesecret_key:description:'Tencent cloud SecretKey...
echo "handle=$SECRET_HANDLE" >> "$GITHUB_OUTPUT"secret-consumer:runs-on:macos-latestneeds:secret-generatorsteps:-uses:some/secret-store@v1with:credentials:${{secrets.SECRET_STORE_CREDENTIALS}}instance:${{secrets.SECRET_STORE_INSTANCE}}-name:usesecretshell:bashrun:| SECRET_HANDLE="${{ ...
pwsh -command ". '{0}'" All python 执行python 命令。 python {0} Linux/macOS sh 未提供 shell 且在路径中找不到 bash 时的非 Windows 平台的后退行为。 sh -e {0} Windows cmd GitHub 将扩展名 .cmd 追加到你的脚本名称并替换 {0}。 %ComSpec% /D /E:ON /V:OFF /S /C "CALL "...
- shell: bash env: SUPER_SECRET: ${{ secrets.SuperSecret }} run: | example-command "$SUPER_SECRET" - name: Hello world action with: # Set the secret as an input super_secret: ${{ secrets.SuperSecret }} env: # Or as an environment variable super_secret: ${{ secrets.SuperSecret }...
run就是在容器中跑一个命令,这里跑了一个unix bash命令,将当前时间写入到$GITHUB_OUTPUT中,键名为result。 $GITHUB_OUTPUT是workflow注入到容器中的一个路径,用于存放output。 Create or update a comment uses使用了本地的action,这个action用于创建或更新一个唯一回复,下一节说。
可以构建Docker容器、JavaScript和复合操作。操作需要一个元数据文件来定义操作的输入、输出和主入口点。元数据文件名必须为action.yml或action.yaml。有关更多信息,请参阅“GitHub操作的元数据语法。“ docker 容器操作 Docker容器用GitHub Actions代码打包环境。这创建了一个更加一致和可靠的工作单元,因为操作的使用者不...
创建action.yml 这里定义了 Action 相关的配置: name:'Tencent COS Action'description:'GitHub Action for Tencent COS Command'author:'zkqiang <zkqiang@126.com>'branding:icon:'cloud'color:'blue'inputs:args:description:'COSCMD args'required:truesecret_id:description:'Tencent cloud SecretId'required:true...
Most workflow commands use theechocommand in a specific format, while others are invoked by writing to a file. For more information, seeEnvironment files. Example of a workflow command Bash echo"::workflow-command parameter1={data},parameter2={data}::{command value}" ...
Run remote SSH commands in your workflow with minimal configuration: name:Remote SSH Commandon:[push]jobs:build:name:Buildruns-on:ubuntu-lateststeps: -name:Execute remote SSH commands using passworduses:appleboy/ssh-action@v1with:host:${{ secrets.HOST }}username:linuxserver.iopassword:${{ secr...
shell: bash run: | # If your submodules are configured to use SSH instead of HTTPS please uncomment the following line # git config --global url."https://github.com/".insteadOf "git@github.com:" auth_header="$(git config --local --get http.https://github.com/.extraheader)" ...