This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Dynamic Dependabot | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
trigger_dependabot: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
# Retrieve the secret | |
- name: Set Target Branch | |
id: set_branch | |
run: echo "::set-output name=branch::${{ secrets.TARGET_BRANCH }}" | |
# Trigger Dependabot with the specified target branch | |
- name: Run Dependabot | |
uses: dependabot/dependabot-core@main | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
directory: "/" # or specify your directory | |
target-branch: ${{ steps.set_branch.outputs.branch }} |