Skip to content

Deprecate RedshiftDataOperatorAsync, RedshiftClusterSensorAsync, S3KeySensorAsync, BatchOperatorAsync, SageMakerProcessingOperatorAsync, SageMakerTransformOperatorAsync #215

Deprecate RedshiftDataOperatorAsync, RedshiftClusterSensorAsync, S3KeySensorAsync, BatchOperatorAsync, SageMakerProcessingOperatorAsync, SageMakerTransformOperatorAsync

Deprecate RedshiftDataOperatorAsync, RedshiftClusterSensorAsync, S3KeySensorAsync, BatchOperatorAsync, SageMakerProcessingOperatorAsync, SageMakerTransformOperatorAsync #215

---
name: Delete RC testing branch upon PR closure
on: # yamllint disable-line rule:truthy
pull_request:
types:
- closed
jobs:
delete-branch:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Verify and Delete RC testing branch
env:
branch_name: ${{ github.event.pull_request.head.ref }}
run: |
git config --global user.name "airflow-oss-bot"
git config --global user.email "[email protected]"
git fetch --prune --all
if [[ "$branch_name" == rc-test-* ]]; then
git push origin --delete $branch_name
else
echo "Branch does not have the required RC testing prefix. Skipping branch deletion."
fi