mirror of
https://github.com/TheAlgorithms/C
synced 2024-11-21 21:11:57 +03:00
chore: run LeetCode directory writer on main
only
This commit is contained in:
parent
b6b01a3605
commit
8a3ff966e7
@ -5,6 +5,8 @@ on:
|
||||
push:
|
||||
paths:
|
||||
- "leetcode/src/**.c"
|
||||
branches:
|
||||
- main
|
||||
jobs:
|
||||
build:
|
||||
if: github.repository == 'TheAlgorithms/C' # We only need this to run in our repository.
|
||||
@ -37,6 +39,7 @@ jobs:
|
||||
shell: bash
|
||||
run: |
|
||||
if [[ `git status --porcelain` ]]; then
|
||||
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).'
|
||||
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).'
|
||||
fi
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
|
Loading…
Reference in New Issue
Block a user