Skip to content

Template update requires manual application (580a975c292d5a1d0ec66872ae0c81fa6a6a3638) #3901

Description

@plengauer

Template workflows have been updated but the diff could not be automatically applied to this repository. Apply a change that is semantically equivalent to the patch here.

Commit

Update autobackport.yml

See: plengauer/plengauer.github.io@580a975

Diff

diff --git a/.github/workflows/autobackport.yml b/.github/workflows/autobackport.yml
index 3e5b91d..f9c2f23 100644
--- a/.github/workflows/autobackport.yml
+++ b/.github/workflows/autobackport.yml
@@ -29,6 +29,7 @@ jobs:
             echo "$ref"
             echo "has_refs=true" >>  "$GITHUB_OUTPUT"
           done | while read -r ref; do echo \""$ref"\"; done | jq -s | tr -d '\n' | tr -d ' ' | xargs -0 -I {} echo 'refs={}' >> "$GITHUB_OUTPUT"
+
   backport:
     if: ${{ !github.event.repository.fork && needs.setup.outputs.has_tags && needs.setup.outputs.has_refs }}
     needs: setup
@@ -55,7 +56,6 @@ jobs:
         run: |
           if git diff --quiet; then echo "should_backport=false"; else echo "should_backport=true"; fi >> "$GITHUB_OUTPUT"
           git checkout .
-      
       - id: prepare_branch
         if: steps.check_patch.outputs.should_backport == 'true'
         run: |
@@ -72,7 +72,7 @@ jobs:
             v*.*.*) current_tag="${current_tag%.*}";;
             v*.*) ;;
             v*) exit 2;;
-            *) exit 3;; 
+            *) exit 3;;
           esac
           branch_name="release/$current_tag"
           echo name="$branch_name" >> "$GITHUB_OUTPUT"
@@ -83,14 +83,12 @@ jobs:
             git checkout -b "$branch_name" "$current_tag".0
             git push -u origin "$branch_name"
           fi
-      
       - if: steps.check_patch.outputs.should_backport == 'true'
         run: |
           set -e
           git format-patch -1 "${{ matrix.ref }}" --stdout > /tmp/commit.patch
           [ -s /tmp/commit.patch ] || exit 0
           git apply /tmp/commit.patch || git cherry-pick -n "${{ matrix.ref }}"
-      
       - id: prepare_pr
         if: steps.check_patch.outputs.should_backport == 'true'
         env:
@@ -100,7 +98,6 @@ jobs:
           echo commit_title="$(git log -1 --pretty=%s "${{ matrix.ref }}")" >> "$GITHUB_OUTPUT"
           echo author_name="$(git log -1 --pretty=%an "${{ matrix.ref }}" 2>/dev/null || echo "")" >> "$GITHUB_OUTPUT"
           echo author_email="$(git log -1 --pretty=%ae "${{ matrix.ref }}" 2>/dev/null || echo "")" >> "$GITHUB_OUTPUT"
-      
       - id: open-pr
         if: steps.check_patch.outputs.should_backport == 'true'
         uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions