项目作者: malept

项目描述 :
GitHub Action to make sure all packages in a Bolt-managed monorepo are updated via Dependabot.
高级语言: Shell
项目地址: git://github.com/malept/github-action-dependabolt.git
创建时间: 2019-09-02T01:34:55Z
项目社区:https://github.com/malept/github-action-dependabolt

开源协议:Apache License 2.0

下载


GitHub Action: Dependabolt

A GitHub Action to make sure all packages in a bolt-managed monorepo are
updated in a Dependabot-generated pull request.

Inputs

  • gitCommitEmail: The email to use when committing to the repository, defaults to the repository
    owner’s fake GitHub email.
  • gitCommitFlags: Any extra git commit flags to pass, such as --no-verify.
  • gitCommitUser: The value to set git config user.name, defaults to the repository owner.

Secrets used

This action uses an SSH deploy key with write permissions to push the commit back up to the repository.
Specify DEPENDABOLT_SSH_DEPLOY_KEY in the repository secrets (the private key).

Example workflow

  1. name: Dependabolt
  2. on: [create]
  3. jobs:
  4. dependabolt:
  5. runs-on: ubuntu-latest
  6. steps:
  7. - id: checkout_action
  8. if: github.event.ref_type == 'branch' && startsWith(github.event.ref, 'dependabot/')
  9. uses: actions/checkout@v1
  10. - name: Install Node.js
  11. - uses: actions/setup-node@v2
  12. with:
  13. node-version: 14.x
  14. - name: Run dependabolt
  15. uses: malept/github-action-dependabolt@main
  16. with:
  17. gitCommitUser: Dependabolt Bot
  18. env:
  19. DEPENDABOLT_SSH_DEPLOY_KEY: ${{ secrets.DEPENDABOLT_SSH_DEPLOY_KEY }}

In a production setting, main should be a tagged version (e.g., v1.0.0).

Debugging

If you need to debug the action, you can set the DEPENDABOLT_DEBUG environment
variable, which sets -x in the shell script.