mirror of
https://github.com/TheAlgorithms/C
synced 2024-11-21 21:11:57 +03:00
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
This commit is contained in:
parent
db3d6e2886
commit
e5dad3fa8d
5
.github/workflows/awesome_workflow.yml
vendored
5
.github/workflows/awesome_workflow.yml
vendored
@ -26,11 +26,6 @@ jobs:
|
|||||||
uses: TheAlgorithms/scripts/formatter@main
|
uses: TheAlgorithms/scripts/formatter@main
|
||||||
with:
|
with:
|
||||||
filetypes: .c,.h
|
filetypes: .c,.h
|
||||||
- name: Update DIRECTORY.md
|
|
||||||
run: |
|
|
||||||
wget https://raw.githubusercontent.com/TheAlgorithms/scripts/main/build_directory_md.py
|
|
||||||
python3 build_directory_md.py C . .c,.h leetcode/ > DIRECTORY.md
|
|
||||||
git commit -m "updating DIRECTORY.md" DIRECTORY.md || true
|
|
||||||
- name: Get file changes
|
- name: Get file changes
|
||||||
run: |
|
run: |
|
||||||
git branch
|
git branch
|
||||||
|
29
.github/workflows/directory_writer.yml
vendored
Normal file
29
.github/workflows/directory_writer.yml
vendored
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
name: Directory writer
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
# ┌───────────── minute (0 - 59)
|
||||||
|
# │ ┌───────────── hour (0 - 23)
|
||||||
|
# │ │ ┌───────────── day of the month (1 - 31)
|
||||||
|
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
|
||||||
|
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
|
||||||
|
# │ │ │ │ │
|
||||||
|
# │ │ │ │ │
|
||||||
|
# │ │ │ │ │
|
||||||
|
# * * * * *
|
||||||
|
- cron: '0 0 * * *'
|
||||||
|
workflow_dispatch:
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
if: github.repository == 'TheAlgorithms/C' # We only need this to run in our repository.
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: Build directory
|
||||||
|
uses: TheAlgorithms/scripts/directory_md@main
|
||||||
|
with:
|
||||||
|
language: C
|
||||||
|
working-directory: .
|
||||||
|
filetypes: .c,.h
|
||||||
|
ignored-directories: leetcode/,scripts/
|
Loading…
Reference in New Issue
Block a user