loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request '[CI] backport upgrade to git-backporting@v4.8.0' (#3155) from earl-warren/forgejo:wip-ci-backport into forgejo

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3155
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>

+3 -30
+3 -30
.forgejo/workflows/backport.yml
··· 45 45 cat <<'EOF' 46 46 ${{ toJSON(github) }} 47 47 EOF 48 - - name: Fetch labels 49 - id: fetch-labels 50 - shell: bash 51 - run: | 52 - set -x 53 - echo "Labels retrieved below" 54 - export DEBIAN_FRONTEND=noninteractive 55 - apt-get update -qq 56 - apt-get -q install -qq -y jq 57 - filtered_labels=$(echo "$LABELS" | jq -c 'map(select(.name | startswith("backport/v")))') 58 - echo "FILTERED_LABELS=${filtered_labels}" >> $GITHUB_ENV 59 - env: 60 - LABELS: ${{ toJSON(github.event.pull_request.labels) }} 61 - - name: Extract targets 62 - id: extract-targets 63 - shell: bash 64 - run: | 65 - set -x 66 - targets="$(echo $FILTERED_LABELS | jq -c '[.[] | .name | sub("backport/"; "")]')" 67 - echo "targets=$(echo $targets)" >> $GITHUB_OUTPUT 68 - 69 - - name: Printing info 70 - shell: bash 71 - run: | 72 - echo "targets: ${{ steps.extract-targets.outputs.targets }}" 73 - echo "target-branch: ${{ fromJSON(steps.extract-targets.outputs.targets)[0] }}" 74 - echo "pull-request: ${{ github.event.pull_request.url }}" 75 - 76 - - uses: https://code.forgejo.org/forgejo/git-backporting@b2554a678d5ea2814f0df3abad2ac4fcdee2d81f 48 + - uses: https://code.forgejo.org/actions/git-backporting@v4.8.0 77 49 with: 78 - target-branch: ${{ fromJSON(steps.extract-targets.outputs.targets)[0] }}/forgejo 50 + target-branch-pattern: "^backport/(?<target>(v.*))$" 79 51 strategy: ort 80 52 strategy-option: find-renames 81 53 cherry-pick-options: -x 82 54 auth: ${{ secrets.BACKPORT_TOKEN }} 83 55 pull-request: ${{ github.event.pull_request.url }} 56 + auto-no-squash: true