Skip to content

Commit

Permalink
Feat: Added minishell
Browse files Browse the repository at this point in the history
  • Loading branch information
0x00Jeff committed Apr 24, 2024
1 parent 824bfa0 commit 2648fea
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 1 deletion.
54 changes: 54 additions & 0 deletions .github/workflows/update_submodules.yml
Original file line number Diff line number Diff line change
@@ -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"
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "minishell-1337"]
path = minishell-1337
url = git@github.com:YeGoRenji/minishell-1337.git
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# 1337_projects
projects I've worked on during 1337 school journey
Projects I've worked on during 1337 school journey
1 change: 1 addition & 0 deletions minishell-1337
Submodule minishell-1337 added at 506bed

0 comments on commit 2648fea

Please sign in to comment.