我正在尝试从 Guthub Actions 工作流程向 slack 发送有关工作流程成功/失败的消息。
finally:
runs-on: ubuntu-latest
needs: ['ci-build', 'lint-yaml', 'lint-json', 'lint-env-files', 'lint-folders', 'lint-filenames', 'shellcheck', 'lint-dockerfile']
if: always()
steps:
- name: Send pipeline status to Slack
if: always()
uses: kpritam/slack-job-status-action@v1
with:
job-status: ${{ job.status }}
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
channel: C0438TFQNPM # pipelines channel
Run Code Online (Sandbox Code Playgroud)
发送消息有效。但${{ job.status }}不代表整个pipeline的状态,只代表最后一个job。
如果任何作业中的任何步骤失败,我想发送失败消息。这是我用于测试的工作流程运行:https://github.com/sebastian-sommerfeld-io/docker-image-adoc-antora/actions/runs/3096876874
工作流程本身按预期工作。但我的松弛消息报告“成功”。它应该报告“失败”,因为一项作业失败,随后跳过另一项作业。
有人知道如何获取整个工作流程的状态,而不仅仅是 Github Actions 工作流程中的单个作业吗?
我正在尝试用 Hugo 建立一个博客,只要我使用 Markdown,它基本上就可以正常工作。但由于我在存储库中还有一些带有 antora 的其他网站内容(文档),所以我想用 asciidoc 编写所有文本。但当我尝试从 adoc 文件生成网站时,我总是遇到这个错误。Markdown 可以工作,但 Asciidoc 给出了这个例外:
\nsebastian@kobol:~/work/repos/sommerfeld-io/website/blog$ hugo\nStart building sites \xe2\x80\xa6 \nhugo v0.92.1-85E2E862 linux/amd64 BuildDate=2022-01-27T11:44:41Z VendorInfo=gohugoio\nError: Error building site: "/home/sebastian/work/repos/sommerfeld-io/website/blog/content/posts/my-second-post.adoc:1:1": access denied: "asciidoctor" is not whitelisted in policy "security.exec.allow"; the current security configuration is:\n\n[security]\n enableInlineShortcodes = false\n [security.exec]\n allow = ['^dart-sass-embedded$', '^go$', '^npx$', '^postcss$']\n osEnv = ['(?i)^(PATH|PATHEXT|APPDATA|TMP|TEMP|TERM)$']\n\n [security.funcs]\n getenv = ['^HUGO_']\n\n [security.http]\n methods = ['(?i)GET|POST']\n urls = ['.*']\n\n\nTotal in 40 ms\nRun Code Online (Sandbox Code Playgroud)\n任何人都可以给我一个关于如何允许从hugo builds 访问asciidoctor 的提示吗?
\n我想从 Microsoft Todo ( https://to-do.live.com )获取待办事项,但我不知道如何开始。我在网上搜索,但没有找到 REST API 的文档。
有谁知道如何从 MS Todo(以前称为 Wunderlist)访问某些 Todo 列表?Graph API 是一个值得关注的地方吗?我没有 Office 365 帐户。