diff --git a/docs/scripts/create_readme.sh b/.github/scripts/create_readme.sh similarity index 100% rename from docs/scripts/create_readme.sh rename to .github/scripts/create_readme.sh diff --git a/docs/scripts/create_scripts_docs.sh b/.github/scripts/create_scripts_docs.sh similarity index 100% rename from docs/scripts/create_scripts_docs.sh rename to .github/scripts/create_scripts_docs.sh diff --git a/docs/scripts/keybindings_to_markdown.sh b/.github/scripts/keybindings_to_markdown.sh similarity index 100% rename from docs/scripts/keybindings_to_markdown.sh rename to .github/scripts/keybindings_to_markdown.sh diff --git a/.github/workflows/update-hyprland-keybindings.yml b/.github/workflows/update-hyprland-keybindings.yml index 2a0550e..4e3faf6 100644 --- a/.github/workflows/update-hyprland-keybindings.yml +++ b/.github/workflows/update-hyprland-keybindings.yml @@ -15,8 +15,8 @@ jobs: uses: actions/checkout@v4 - name: Run a script run: | - chmod +x ./docs/scripts/keybindings_to_markdown.sh - ./docs/scripts/keybindings_to_markdown.sh + chmod +x ./.github/scripts/keybindings_to_markdown.sh + ./docs/.github/keybindings_to_markdown.sh git config user.name github-actions git config user.email github-actions@github.com git add . diff --git a/.github/workflows/update-readme.yml b/.github/workflows/update-readme.yml index 530581d..fcf4a96 100644 --- a/.github/workflows/update-readme.yml +++ b/.github/workflows/update-readme.yml @@ -22,8 +22,8 @@ jobs: go install github.com/anotherhadi/markdown-table-of-contents@latest - name: Run a script run: | - chmod +x ./docs/scripts/create_readme.sh - ./docs/scripts/create_readme.sh + chmod +x ./.github/scripts/create_readme.sh + ./.github/scripts/create_readme.sh git config user.name github-actions git config user.email github-actions@github.com git add . diff --git a/.github/workflows/update-scripts-docs.yml b/.github/workflows/update-scripts-docs.yml new file mode 100644 index 0000000..c9bb84b --- /dev/null +++ b/.github/workflows/update-scripts-docs.yml @@ -0,0 +1,24 @@ +on: + push: + paths: + - 'home/scripts' +permissions: + contents: write +jobs: + update-readme: + runs-on: ubuntu-latest + defaults: + run: + working-directory: ./ + steps: + - name: Check out the repository to the runner + uses: actions/checkout@v4 + - name: Run a script + run: | + chmod +x ./.github/scripts/create_scripts_docs.sh + ./.github/scripts/create_scripts_docs.sh + git config user.name github-actions + git config user.email github-actions@github.com + git add . + git commit -m "Update SCRIPTS.md (auto)" + git push