Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e5dad3f

Browse files
feat: use directory workflow from the scripts repository (#1278)
* feat: use directory workflow from the... ...`scripts` repository. * fix: `on` event * chore: run directory workflow daily
1 parent db3d6e2 commit e5dad3f

File tree

2 files changed

+29
-5
lines changed

2 files changed

+29
-5
lines changed

‎.github/workflows/awesome_workflow.yml‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@ jobs:
2626
uses: TheAlgorithms/scripts/formatter@main
2727
with:
2828
filetypes: .c,.h
29-
- name: Update DIRECTORY.md
30-
run: |
31-
wget https://raw.githubusercontent.com/TheAlgorithms/scripts/main/build_directory_md.py
32-
python3 build_directory_md.py C . .c,.h leetcode/ > DIRECTORY.md
33-
git commit -m "updating DIRECTORY.md" DIRECTORY.md || true
3429
- name: Get file changes
3530
run: |
3631
git branch
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Directory writer
2+
on:
3+
schedule:
4+
# ┌───────────── minute (0 - 59)
5+
# │ ┌───────────── hour (0 - 23)
6+
# │ │ ┌───────────── day of the month (1 - 31)
7+
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
8+
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
9+
# │ │ │ │ │
10+
# │ │ │ │ │
11+
# │ │ │ │ │
12+
# * * * * *
13+
- cron: '0 0 * * *'
14+
workflow_dispatch:
15+
jobs:
16+
build:
17+
if: github.repository == 'TheAlgorithms/C' # We only need this to run in our repository.
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v3
21+
with:
22+
fetch-depth: 0
23+
- name: Build directory
24+
uses: TheAlgorithms/scripts/directory_md@main
25+
with:
26+
language: C
27+
working-directory: .
28+
filetypes: .c,.h
29+
ignored-directories: leetcode/,scripts/

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /