Skip to content

Commit 8a3ff96

Browse files
authored
chore: run LeetCode directory writer on main only
1 parent b6b01a3 commit 8a3ff96

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/leetcode_directory_writer.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
push:
66
paths:
77
- "leetcode/src/**.c"
8+
branches:
9+
- main
810
jobs:
911
build:
1012
if: github.repository == 'TheAlgorithms/C' # We only need this to run in our repository.
@@ -37,6 +39,7 @@ jobs:
3739
shell: bash
3840
run: |
3941
if [[ `git status --porcelain` ]]; then
40-
gh pr create --base ${GITHUB_REF##*/} --head leetcode-directory-${{ github.sha }} --title 'docs: updating `leetcode/DIRECTORY.md`' --body 'Updated LeetCode directory (see the diff. for changes).'
42+
gh pr create --base ${GITHUB_REF##*/} --head leetcode-directory-${{ github.sha }} --title 'docs: updating `leetcode/DIRECTORY.md`' --body 'Updated LeetCode directory (see the diff. for changes).'
43+
fi
4144
env:
4245
GH_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)