【问题标题】:How do I setup sendgrid mail in Github actions?如何在 Github 操作中设置 sendgrid 邮件?
【发布时间】:2020-12-08 21:58:49
【问题描述】:

我正在尝试在我的 Github 操作中设置 SendGrid。我正在使用 SendGrid 操作。

根据docs,我可以使用类似的替代路径

- name: SendGrid
      uses: peter-evans/sendgrid-action@v1
      env:
        SENDGRID_API_KEY: ${{ secrets.SENDGRID_API_KEY }}
        SCRIPT_FILEPATH: ../src/helper/sendgrid/script.js

但每次我运行 Github 操作时,我都会收到此错误 /entrypoint.sh: line 8: ../src/helper/sendgrid/script.js: not found

我有什么遗漏吗?

更新: 我将路径更改为./src/helper/sendgrid/script.js,但出现新错误/entrypoint.sh: line 8: ./src/helper/sendgrid/script.js: Permission denied

【问题讨论】:

  • 你的意思是./src/helper/sendgrid/script.js?

标签: node.js sendgrid github-actions


【解决方案1】:

Permission denied 错误很可能是因为脚本必须是可执行的。 如下赋予脚本可执行权限。

chmod +x script.js

readme documentation中提到了这一点。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-09-27
    • 2021-01-07
    • 2016-01-22
    • 2020-06-24
    • 1970-01-01
    • 1970-01-01
    • 2020-09-01
    相关资源
    最近更新 更多