Skip to content

hchiam/learning-action-dependabot-auto-merge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Just one of the things I'm learning. https://github.com/hchiam/learning

At least once

https://github.com/settings/tokens

Set up a PAT (Personal Access Token) named mytoken with these scopes:

  • repo for private repositories
  • public_repo for public repositories

Per repo

Go to: Settings > Security > Secrets and variables > Dependabot > New repository secret > Name: mytoken, Secret: (paste PAT) > Add secret

Create this file:

.github/workflows/dependabot_auto_merge.yml

Literally post this into that file: (yes, literally ${{ secrets.mytoken }})

name: dependabot_auto_merge

on:
  pull_request:

jobs:
  auto-merge:
    runs-on: ubuntu-latest
    steps:
      - uses: ahmadnassri/action-dependabot-auto-merge@v2
        with:
          github-token: ${{ secrets.mytoken }}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published