Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/malept/github-action-dependabolt
GitHub Action to make sure all packages in a Bolt-managed monorepo are updated via Dependabot.
https://github.com/malept/github-action-dependabolt
bolt dependabot github-action github-actions
Last synced: 4 days ago
JSON representation
GitHub Action to make sure all packages in a Bolt-managed monorepo are updated via Dependabot.
- Host: GitHub
- URL: https://github.com/malept/github-action-dependabolt
- Owner: malept
- License: apache-2.0
- Created: 2019-09-02T01:34:55.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-06-03T14:26:22.000Z (over 3 years ago)
- Last Synced: 2024-10-24T16:08:52.602Z (14 days ago)
- Topics: bolt, dependabot, github-action, github-actions
- Language: Shell
- Homepage:
- Size: 23.4 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GitHub Action: Dependabolt
A GitHub Action to make sure all packages in a [`bolt`](http://boltpkg.com/)-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
```yaml
name: Dependabolton: [create]
jobs:
dependabolt:
runs-on: ubuntu-latest
steps:
- id: checkout_action
if: github.event.ref_type == 'branch' && startsWith(github.event.ref, 'dependabot/')
uses: actions/checkout@v1
- name: Install Node.js
- uses: actions/setup-node@v2
with:
node-version: 14.x
- name: Run dependabolt
uses: malept/github-action-dependabolt@main
with:
gitCommitUser: Dependabolt Bot
env:
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.