Skip to content

Commit

Permalink
Merge pull request #2457 from NCEAS/feature-2456-dependabot-branch-ac…
Browse files Browse the repository at this point in the history
…tion

Add GH action to switch dependabot base branch to develop
  • Loading branch information
robyngit authored Jun 25, 2024
2 parents 3cf5020 + ec4177f commit 3cfa6e6
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/dependabot-branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Change Dependabot branch to develop
on:
pull_request_target:
types:
- opened
- edited
jobs:
check-branch:
if: startsWith(github.head_ref, 'dependabot/')
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: Vankka/pr-target-branch-action@v3
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
target: main
change-to: develop

0 comments on commit 3cfa6e6

Please sign in to comment.