From 4611c401e8c48e64ebd3e30b07988e47f92f4f59 Mon Sep 17 00:00:00 2001 From: Matyrobbrt <65940752+Matyrobbrt@users.noreply.github.com> Date: Mon, 25 Dec 2023 14:46:33 +0200 Subject: [PATCH] uPDATE --- .github/workflows/publish-prs.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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