Skip to content

DO NOT MERGE - Test AWS integration tests #235

DO NOT MERGE - Test AWS integration tests

DO NOT MERGE - Test AWS integration tests #235

name: Synchronize PR Labels
on:
pull_request_target:
branches:
- "master"
- "[0-9]+.[0-9]+.z"
- "[0-9]+.[0-9]+.[0-9]"
- "[0-9]+.[0-9]+.[0-9]+-BETA-[0-9]+"
- "[0-9]+.[0-9]+.[0-9]+-DEVEL-[0-9]+"
- "data-migration-5.3"
types:
- labeled
- unlabeled
jobs:
synchronize-pr-labels:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Copy labels to other PR
run: |
SOURCE_REPO="${{ github.repository }}"
SOURCE_PR="${{ github.event.pull_request.number }}"
CONTENT="$(gh pr view "$SOURCE_PR" --json "body,comments" -q '.body, .comments[].body')"
while read -r line; do
if [[ $line =~ (Closes|Internal\ PR)\ ([^/]+/[^/]+)#([0-9]+) ]]; then
TARGET_REPO="${BASH_REMATCH[2]}"
TARGET_PR="${BASH_REMATCH[3]}"
.github/workflows/common-synchronize-pr-labels.sh $SOURCE_REPO $SOURCE_PR $TARGET_REPO $TARGET_PR
fi
done <<< "$CONTENT"
env:
GH_TOKEN: ${{ secrets.DEVOPSHAZELCAST_PAT_FOR_MONOREPO }}
- uses: 8398a7/action-slack@v3
if: failure()
with:
fields: repo,message,author,action,eventName,workflow,job,pullRequest
status: failure
channel: "#monorepo-notifications"
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_MONOREPO }}