From 2648fead8c7554e5183e955b77fbaaacf7fc7c11 Mon Sep 17 00:00:00 2001 From: 0x00Jeff Date: Wed, 24 Apr 2024 15:09:10 +0100 Subject: [PATCH] Feat: Added minishell --- .github/workflows/update_submodules.yml | 54 +++++++++++++++++++++++++ .gitmodules | 3 ++ README.md | 2 +- minishell-1337 | 1 + 4 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/update_submodules.yml create mode 100644 .gitmodules create mode 160000 minishell-1337 diff --git a/.github/workflows/update_submodules.yml b/.github/workflows/update_submodules.yml new file mode 100644 index 0000000..1272803 --- /dev/null +++ b/.github/workflows/update_submodules.yml @@ -0,0 +1,54 @@ +# This is a basic workflow to help you get started with Actions + +name: update submodules + +# Controls when the workflow will run +on: + workflow_dispatch: + schedule: + - cron: "0 0 * * *" + push: + branches: ["main"] + + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Use the Bash shell regardless whether the GitHub Actions runner is ubuntu-latest, macos-latest, or windows-latest + defaults: + run: + shell: bash + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checkout the repository to the GitHub Actions runner + - name: Checkout + uses: actions/checkout@v3 + with: + token: ${{ secrets.GITHUB_TOKEN }} + submodules: true + + # Runs a single command using the runners shell + - name: Run a one-line script + run: echo "updating submodules" + + - name : setup git info + run: | + git config --global user.name "Git bot" + git config --global user.email "bot@noreply.github.com" + + # Update references + - name: fetch submodules references + run: | + git pull --recurse-submodules + git submodule update --remote --recursive + + # push submodules + - name: update submodules + run: | + git commit -am "Test: updating submodules" || exit 0 + git push && echo "it worked" || echo "No changes to commit" diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..8dcb466 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "minishell-1337"] + path = minishell-1337 + url = git@github.com:YeGoRenji/minishell-1337.git diff --git a/README.md b/README.md index 3dd09b7..7005660 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ # 1337_projects -projects I've worked on during 1337 school journey +Projects I've worked on during 1337 school journey diff --git a/minishell-1337 b/minishell-1337 new file mode 160000 index 0000000..506bedb --- /dev/null +++ b/minishell-1337 @@ -0,0 +1 @@ +Subproject commit 506bedb63a68b9b382a12e895f0a70e086a482f7