Skip to content

Merge pull request #20815 from redpanda-data/stephan/downgrade-non-fa… #136

Merge pull request #20815 from redpanda-data/stephan/downgrade-non-fa…

Merge pull request #20815 from redpanda-data/stephan/downgrade-non-fa… #136

# Invoke the backport bot whenever we merge into dev.
name: backport-on-merge
on:
push:
branches:
- dev
env:
SCRIPT_DIR: "${{ github.workspace }}/.github/workflows/scripts/backport-command"
PR_NUMBER: ${{ github.event.number }}
jobs:
backport-on-merge:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
# Find the PR associated with this push, if there is one.
- uses: jwalton/gh-find-current-pr@v1
id: findPr
with:
# Can be "open", "closed", or "all". Defaults to "open".
state: closed
- run: echo "PR_NUMBER=${PR}" >>"$GITHUB_ENV"
if: success() && steps.findPr.outputs.number
env:
PR: ${{ steps.findPr.outputs.pr }}
- name: configure aws credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_SM_READONLY_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SM_READONLY_SECRET_ACCESS_KEY }}
aws-region: us-west-2
- name: get secrets from aws sm
uses: aws-actions/aws-secretsmanager-get-secrets@v2
with:
secret-ids: |
,sdlc/prod/github/actions_bot_token
parse-json-secrets: true
- name: Backport On Merge
env:
GITHUB_TOKEN: ${{ env.ACTIONS_BOT_TOKEN }}
id: extract_required_backports_from_pr_body
run: $SCRIPT_DIR/backport_on_merge.sh
shell: bash