Skip to content

Commit

Permalink
Update test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yaminidhamija authored Apr 17, 2024
1 parent 0e5d14f commit 0a249e2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ jobs:

echo "New version: $new_version"

branch_name = "$new_version_BRANCH"
git checkout -b $branch_name
branch = "$new_version""_BRANCH"
git checkout -b $branch
sed -i "s#\(^ *target-branch: \).*#\1\"$new_version\"#" .github/dependabot.yml

echo ${{ secrets.GH_TOKEN }} | gh auth login --hostname github.com --with-token
Expand All @@ -48,5 +48,5 @@ jobs:
git config user.name "GitHub Actions"
git add .github/dependabot.yml
git commit -m "Update Dependabot target_branch to $new_version"
git push origin $dependabot_update_branch_name
gh pr create --base test -H $dependabot_update_branch_name --title "Update Dependabot target_branch to $new_version" --body "Created by Github action"
git push origin $branch
gh pr create --base test -H $branch --title "Update Dependabot target_branch to $new_version" --body "Created by Github action"

0 comments on commit 0a249e2

Please sign in to comment.