Skip to content

Commit 1cddf10

Browse files
✨ Add automatic creation of dependencies update label (#79)
Co-authored-by: openhands <openhands@all-hands.dev>
1 parent f93dbbd commit 1cddf10

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/update_dependencies.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,19 @@ jobs:
5050
run: |
5151
git diff --exit-code --quiet requirements.txt || echo "changed=true" >> $GITHUB_OUTPUT
5252
53+
- name: Create required label if not exists
54+
run: |
55+
# Check if label exists
56+
LABEL_EXISTS=$(gh label list | grep "automated-dependencies-update" || true)
57+
if [ -z "$LABEL_EXISTS" ]; then
58+
echo "Creating automated-dependencies-update label..."
59+
gh label create "automated-dependencies-update" \
60+
--color "2DA44E" \
61+
--description "Automated PR for updating project dependencies"
62+
fi
63+
env:
64+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
65+
5366
- name: Handle dependency updates
5467
if: steps.git-check.outputs.changed == 'true'
5568
run: |

0 commit comments

Comments
 (0)