From e59839254a0a34361b391adeb6e2672f176e8f5e Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 9 Oct 2026 13:46:06 -0700 Subject: [PATCH] automation: trigger the edera/6.18-lts backport when a PR merges edera/6.18-lts proposes a backport of each pull request merged into edera/mainline, driven by its own workflows. Add a workflow here whose only job is to dispatch that, skipping pull requests labelled no-backport and the nightly's rebase pull requests. --- .github/workflows/lts-backport-trigger.yml | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/lts-backport-trigger.yml diff --git a/.github/workflows/lts-backport-trigger.yml b/.github/workflows/lts-backport-trigger.yml new file mode 100644 index 00000000000000..f77e0ed1e11771 --- /dev/null +++ b/.github/workflows/lts-backport-trigger.yml @@ -0,0 +1,43 @@ +name: Trigger edera/6.18-lts backport + +# Starts edera/6.18-lts's backport of a pull request that just merged into +# edera/mainline, and does nothing else. +# +# edera/6.18-lts drives its own backports with its own copy of +# kernel-nightly.yml (backport_pr= runs lts-backport.yml there). Pull +# requests labelled no-backport, and the nightly's own rebase pull requests, +# are not dispatched; edera/6.18-lts decides everything else, including +# whether there is anything to backport at all. +# +# pull_request_target runs this file as it is on edera/mainline, with a token +# that can dispatch even for a pull request from a fork. Nothing here checks +# out or runs the pull request's code. + +on: + pull_request_target: + types: [closed] + branches: [edera/mainline] + +permissions: {} + +jobs: + dispatch: + if: >- + github.event.pull_request.merged + && !startsWith(github.event.pull_request.head.ref, 'rebase/') + && !contains(github.event.pull_request.labels.*.name, 'no-backport') + runs-on: ubuntu-latest + timeout-minutes: 5 + permissions: + actions: write + steps: + - name: Harden runner + uses: step-security/harden-runner@05e31511f85b41b11d1cf0ef85d0992719546e2c # v2.21.0 + with: + egress-policy: audit + + - name: Dispatch + env: + GH_TOKEN: ${{ github.token }} + PR: ${{ github.event.pull_request.number }} + run: gh workflow run kernel-nightly.yml --repo "$GITHUB_REPOSITORY" --ref edera/6.18-lts -f backport_pr="$PR"