For*_*vin 2 github github-actions
我只是想测试 GitHub 的新“GitHub Actions”功能。因此,我.github在存储库中创建了一个文件夹,并workflows在其中创建了一个文件夹,并向test-workflow.yml该文件夹添加了一个简单的内容:
name: Hello World
#on:
# schedule:
# #- cron: '0 */12 * * *'
# - cron: '* * * * *'
on: [push]
jobs:
one:
name: Hello
runs-on: alpine-latest
steps:
- run: echo "hello world"
Run Code Online (Sandbox Code Playgroud)
但它似乎从未开始。它只是永远说“开始运行您的工作流程...”。
我想知道我可能做错了什么。
您的作业配置为在alpine-latest环境中运行,但GitHub 不提供alpine-latest作为其工作流程环境之一。您的选择是ubuntu-latest、macOS-latest、windows-latest或这三个操作系统之一的特定版本。更改runs-on: alpine-latest为runs-on: ubuntu-latest,您的工作流程应该开始。
| 归档时间: |
|
| 查看次数: |
3370 次 |
| 最近记录: |