mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-06-22 22:11:03 +02:00
Add Conditional
This commit is contained in:
parent
57e5264df6
commit
20e8c2287a
10
.github/workflows/pr-backport-autotrigger.yml
vendored
10
.github/workflows/pr-backport-autotrigger.yml
vendored
@ -29,6 +29,16 @@ jobs:
|
|||||||
# Configure Git to use the PAT for authentication
|
# Configure Git to use the PAT for authentication
|
||||||
git remote set-url origin https://yuhongsun96:${{ secrets.YUHONG_GH_ACTIONS }}@github.com/${{ github.repository }}.git
|
git remote set-url origin https://yuhongsun96:${{ secrets.YUHONG_GH_ACTIONS }}@github.com/${{ github.repository }}.git
|
||||||
|
|
||||||
|
- name: Check for Backport Checkbox
|
||||||
|
id: checkbox-check
|
||||||
|
run: |
|
||||||
|
PR_BODY="${{ github.event.pull_request.body }}"
|
||||||
|
if [[ "$PR_BODY" == *"[x] This PR should be backported"* ]]; then
|
||||||
|
echo "backport=true" >> $GITHUB_OUTPUT
|
||||||
|
else
|
||||||
|
echo "backport=false" >> $GITHUB_OUTPUT
|
||||||
|
fi
|
||||||
|
|
||||||
- name: List and sort release branches
|
- name: List and sort release branches
|
||||||
id: list-branches
|
id: list-branches
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user