元数据文件名必须为 action.yml 或action.yaml。 元数据文件中的数据定义操作的输入、输出和运行配置。 操作元数据文件使用 YAML 语法。 如果不熟悉 YAML,可以阅读“用五分钟的时间来了解 YAML”。 name (必需)操作的名称。 GitHub 在“操作”选项卡中显示 name,以帮助直观地识别每个作业中的操作。 aut...
要在 GitHub Action 中使用环境变量,请使用特定的 GitHub Actions 命令创建或修改.env文件。 操作步骤如下: YAML name:ExampleWorkflowforEnvironmentFileson:pushjobs:set_and_use_env_vars:runs-on:ubuntu-lateststeps:-name:Setenvironmentvariablerun:echo"MY_ENV_VAR=myValue">>$GITHUB_ENV-name:Useenvi...
Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up Appearance settings Resetting focus
We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up Appearance settings Resetting foc...
projectName="GitHubActionExercise"location="eastus"resourceGroupName="${projectName}-rg"appName="http://${projectName}"# Create the resource groupaz group create--name$resourceGroupName--location$location# Store the resource group ID in a variablescope=$(az group list--query"[?...
对于 pwsh 和powershell 内置shell,我们将在脚本内容前面追加 $ErrorActionPreference = 'stop'。 我们追加 if ((Test-Path -LiteralPath variable:\LASTEXITCODE)) { exit $LASTEXITCODE } 到Powershell 脚本,以便操作状态反映脚本的最后一个退出代码。 用户始终可以选择退出,方法是不使用内置 shell,并按...
Because runner environment variable interpolation is done after a workflow job is sent to a runner machine, you must use the appropriate syntax for the shell that's used on the runner. In this example, the workflow specifiesubuntu-latest. By default, Linux runners use the bash shell, so you...
GitHub Advanced Security Find and fix vulnerabilities Actions Automate any workflow Codespaces Instant dev environments Issues Plan and track work Code Review Manage code changes Discussions Collaborate outside of code Code Search Find more, search less ...
appium:intentAction Set an optional intent action to be applied when starting the given appActivity by Activity Manager. Dfaults to android.intent.action.MAIN. Please use mobile:startActivity in case you don't set an explicit value. appium:intentFlags Set an optional intent flags to be applied...
Cache action This action allows caching dependencies and build outputs to improve workflow execution time. Two other actions are available in addition to the primary cache action: Restore action Save action Documentation See "Caching dependencies to speed up workflows". What's New ⚠️ Important ...