Skip to content

Commit

Permalink
feat: context for dependabot
Browse files Browse the repository at this point in the history
  • Loading branch information
Yehonal authored Mar 28, 2024
1 parent 3ba4039 commit 6de6ce5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion better-dependabot/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ inputs:
description: 'Determines the version to upgrade to: latest, newest, greatest, minor, patch, semver. (default: patch)'
required: false
default: 'patch'
context:
description: 'It is used inside the branch name. E.g: You can use it to differentiate multiple PRs in a monorepo'
default: 'default'
ncu_args:
descriptions: 'Extra args for the npm-check-updates'
required: false
Expand All @@ -31,7 +34,7 @@ runs:
- name: Check for Existing Pull Requests
id: check_pr
run: |
BRANCH_PREFIX="better-dependabot-updates-${{ inputs.version_target }}"
BRANCH_PREFIX="better-dependabot-updates-${{ inputs.context }}-${{ inputs.version_target }}"
BRANCH_NAME=$BRANCH_PREFIX-$(date +%Y%m%d%H%M%S)
PR_EXISTS=$(gh pr list --search "head:${BRANCH_PREFIX} type:pr state:open" | wc -l)
echo "PR_EXISTS=${PR_EXISTS}" >> $GITHUB_ENV
Expand Down

0 comments on commit 6de6ce5

Please sign in to comment.