Skip to content

Commit cd4f1a4

Browse files
committed
fix: Use include-workspace-root for target branch
1 parent a52b83d commit cd4f1a4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/content/post-dependabot-yml.hbs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
id: flags
2727
run: |
2828
dependabot_dir="$\{{ steps.metadata.outputs.directory }}"
29-
if [[ "$dependabot_dir" == "/" ]]; then
29+
if [[ "$dependabot_dir" == "/" || "$dependabot_dir" == "/{{ releaseBranch }}" ]]; then
3030
echo "workspace=-iwr" >> $GITHUB_OUTPUT
3131
else
3232
# strip leading slash from directory so it works as a
@@ -64,7 +64,7 @@ jobs:
6464
run: |
6565
git commit -am "$\{{ steps.apply.outputs.message }}"
6666
git push
67-
67+
6868
# If the previous step failed, then reset the commit and remove any workflow changes
6969
# and attempt to commit and push again. This is helpful because we will have a commit
7070
# with the correct prefix that we can then --amend with @npmcli/stafftools later.
@@ -98,4 +98,3 @@ jobs:
9898
echo "This PR has a breaking change. Run 'npx -p @npmcli/stafftools gh template-oss-fix'"
9999
echo "for more information on how to fix this with a BREAKING CHANGE footer."
100100
exit 1
101-

0 commit comments

Comments
 (0)