mirror of
https://github.com/TheAlgorithms/C
synced 2024-11-22 05:21:49 +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:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- "leetcode/src/**.c"
|
- "leetcode/src/**.c"
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
if: github.repository == 'TheAlgorithms/C' # We only need this to run in our repository.
|
if: github.repository == 'TheAlgorithms/C' # We only need this to run in our repository.
|
||||||
@ -38,5 +40,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
if [[ `git status --porcelain` ]]; then
|
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:
|
env:
|
||||||
GH_TOKEN: ${{ github.token }}
|
GH_TOKEN: ${{ github.token }}
|
||||||
|
Loading…
Reference in New Issue
Block a user