Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check for backports in CI #8304

Merged
merged 17 commits into from
Apr 7, 2024
13 changes: 13 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,19 @@ env:

permissions: {}
jobs:
backport:
runs-on: ubuntu-latest
name: Backport label added?
if: ${{ github.base_ref == 'master' }}
steps:
- name: Check labels
run: |
for label in "${{ github.event.pull_request.labels }}"; do
case $label in backport*)
exit 0
esac
done
exit 1
Dreamsorcerer marked this conversation as resolved.
Show resolved Hide resolved

lint:
permissions:
Expand Down