Skip to content

Commit

Permalink
try to set correct branch for commit + push
Browse files Browse the repository at this point in the history
  • Loading branch information
hughsimpson committed Sep 10, 2024
1 parent 7445ec1 commit 746b2d1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/pr-bb-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,16 @@ jobs:
cd byte-buddy
git checkout $tag
git apply bb.patch
mvn clean package -Pextras -Dskiptests -q
mvn clean package -Pextras -Dskiptests -q -B
echo Build succeeded
mv ./byte-buddy/target/$tag.jar ../agent/libs
mv ./byte-buddy/target/$tag-sources.jar ../agent/libs
cd ..
rm -rf byte-buddy
perl -pi -e "s|libs/byte-buddy-.+jar|libs/$tag.jar|" agent/build.gradle
echo updated byte buddy and reference
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
git checkout "${GITHUB_HEAD_REF}"
git add agent/libs agent/build.gradle
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
Expand Down

0 comments on commit 746b2d1

Please sign in to comment.