altered if statement checker for auto-merge in actions.yml

This commit is contained in:
skye rogers 2025-03-24 11:57:33 -07:00
parent 7e721b5822
commit 4044cb3801

View file

@ -17,10 +17,10 @@ jobs:
uses: dependabot/fetch-metadata@v2 uses: dependabot/fetch-metadata@v2
with: with:
alert-lookup: true alert-lookup: true
compat-lookup: true
github-token: "${{ secrets.PAT_TOKEN }}" github-token: "${{ secrets.PAT_TOKEN }}"
- name: Enable auto-merge for Dependabot PRs - name: Enable auto-merge for Dependabot PRs
if: (steps.dependabot-metadata.outputs.cvss == true && update_types == 'minor' || 'patch') # if: (steps.dependabot-metadata.outputs.cvss == true && update_types == 'minor' || 'patch')
if: update_types == 'minor' || 'patch'
run: gh pr merge --auto --merge "$PR_URL" run: gh pr merge --auto --merge "$PR_URL"
env: env:
PR_URL: ${{github.event.pull_request.html_url}} PR_URL: ${{github.event.pull_request.html_url}}