Skip to content

Commit

Permalink
fix: Use include-workspace-root for target branch
Browse files Browse the repository at this point in the history
  • Loading branch information
hashtagchris committed Jul 17, 2024
1 parent a52b83d commit eff36c1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/content/post-dependabot-yml.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
id: flags
run: |
dependabot_dir="$\{{ steps.metadata.outputs.directory }}"
if [[ "$dependabot_dir" == "/" ]]; then
if [[ "$dependabot_dir" == "/" || "$dependabot_dir" == "/{{ branch }}" ]]; then
echo "workspace=-iwr" >> $GITHUB_OUTPUT
else
# strip leading slash from directory so it works as a
Expand Down Expand Up @@ -64,7 +64,7 @@ jobs:
run: |
git commit -am "$\{{ steps.apply.outputs.message }}"
git push

# If the previous step failed, then reset the commit and remove any workflow changes
# and attempt to commit and push again. This is helpful because we will have a commit
# with the correct prefix that we can then --amend with @npmcli/stafftools later.
Expand Down Expand Up @@ -98,4 +98,3 @@ jobs:
echo "This PR has a breaking change. Run 'npx -p @npmcli/stafftools gh template-oss-fix'"
echo "for more information on how to fix this with a BREAKING CHANGE footer."
exit 1

0 comments on commit eff36c1

Please sign in to comment.