diff --git a/.github/workflows/publish-prs.yml b/.github/workflows/publish-prs.yml index 4ff92fad25..e726e93d05 100644 --- a/.github/workflows/publish-prs.yml +++ b/.github/workflows/publish-prs.yml @@ -14,11 +14,18 @@ jobs: upload: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - name: Checkout repository + uses: actions/checkout@v4 with: fetch-depth: 1000 fetch-tags: true + # Switch to a new branch with the PR number and PR branch name, + # for the projects where the buildscript uses the branch name + - name: Create branch for commit + run: + git switch -C pr-${{ github.event.pull_request.number }}-${{ github.event.pull_request.head.ref }} + - name: Make Gradle executable # language=bash run: chmod +x ./gradlew # Thanks Windows