From 637936fd347ddec0332666fa718325d47a1842cf Mon Sep 17 00:00:00 2001 From: Mark Chappell Date: Fri, 10 Jan 2025 17:18:10 +0100 Subject: [PATCH] Initial commit --- .github/workflows/backports.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/backports.yml diff --git a/.github/workflows/backports.yml b/.github/workflows/backports.yml new file mode 100644 index 00000000000..663380e20a5 --- /dev/null +++ b/.github/workflows/backports.yml @@ -0,0 +1,25 @@ +name: mergeit-backport +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +on: + pull_request: + types: + - labeled + branches: + - main +jobs: + labeling: + permissions: + pull-requests: read + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Fetch changelog types + run: | + gh pr -R tremble/amazon.aws diff 11 --name-only | \ + grep -E '^changelogs/fragments/' | \ + while read -r line + do cat "${line}" | python -c 'import sys, yaml; change = yaml.safe_load(sys.stdin.read()) ; print("\n".join(change.keys()));' 2>/dev/null + done