Update submodule CI/CD #51
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI/CD | |
run-name: Update submodule CI/CD | |
on: | |
workflow_dispatch | |
jobs: | |
info: | |
runs-on: ubuntu-latest | |
steps: | |
- name: "π¬ github" | |
run: |+ | |
echo "Who launched: ${{ github.actor }}" | |
echo "On branch: ${{ github.ref_name }}" | |
echo "Commit sha: ${{ github.sha }}" | |
- name: "π¬ Bin utils" | |
run: |+ | |
make --version && echo | |
ar --version && echo | |
gcc --verbose && echo | |
python3 --version | |
test-ft_libft: | |
uses: Pixailz/ft_libft/.github/workflows/CI.yml@main | |
with: | |
is_called: true | |
update-ft_libft: | |
needs: test-ft_libft | |
runs-on: ubuntu-latest | |
steps: | |
- name: βοΈ Retrieve ft_libft repo | |
uses: actions/checkout@v3 | |
with: | |
repository: "Pixailz/ft_libft" | |
submodules: recursive | |
token: ${{ secrets.PAT_ACTIONS }} | |
- name: βοΈ Update submodules | |
run: |+ | |
git submodule update --remote --recursive | |
- name: π§ Update file with helper | |
run: make helper | |
- name: βοΈ Configure, commit and push | |
run: |+ | |
git config user.name 'github-actions[bot]' | |
git config user.email 'github-actions[bot]@users.noreply.github.com' | |
git commit -a -m "[helper] submodule update spread" | |
git status && git push | |
test-ft_ping: | |
needs: update-ft_libft | |
runs-on: ubuntu-latest | |
steps: | |
- name: βοΈ Retrieve ft_ping | |
uses: actions/checkout@v3 | |
with: | |
repository: "Pixailz/ft_ping" | |
submodules: recursive | |
token: ${{ secrets.PAT_ACTIONS }} | |
- name: βοΈ Update submodules | |
run: |+ | |
git submodule update --remote --recursive | |
- name: π§ test ft_ping | |
run: make | |
- name: βοΈ Configure and commit | |
run: |+ | |
git config user.name 'github-actions[bot]' | |
git config user.email 'github-actions[bot]@users.noreply.github.com' | |
git commit -a -m "[helper] submodule update spread" | |
- name: π¬ Git status | |
run: |+ | |
git status | |
- name: βοΈ ft_ping push | |
run: git status && git push | |
test-SupaBlank: | |
needs: update-ft_libft | |
runs-on: ubuntu-latest | |
steps: | |
- name: βοΈ Retrieve SupaBlank repo | |
uses: actions/checkout@v3 | |
with: | |
repository: "Pixailz/SupaBlank" | |
submodules: recursive | |
token: ${{ secrets.PAT_ACTIONS }} | |
- name: βοΈ Update submodules | |
run: |+ | |
git submodule update --remote --recursive | |
- name: π§ test SupaBlank | |
run: make | |
- name: βοΈ Configure and commit | |
run: |+ | |
git config user.name 'github-actions[bot]' | |
git config user.email 'github-actions[bot]@users.noreply.github.com' | |
git commit -a -m "[helper] submodule update spread" | |
- name: π¬ Git status | |
run: |+ | |
git status | |
- name: βοΈ SupaBlank push | |
run: git status && git push | |
test-GameOfLife: | |
needs: update-ft_libft | |
runs-on: ubuntu-latest | |
steps: | |
- name: βοΈ Retrieve GameOfLife repo | |
uses: actions/checkout@v3 | |
with: | |
repository: "Pixailz/GameOfLife" | |
submodules: recursive | |
token: ${{ secrets.PAT_ACTIONS }} | |
- name: βοΈ Update submodules | |
run: |+ | |
git submodule update --remote --recursive | |
- name: π§ test GameOfLife | |
run: make | |
- name: βοΈ Configure and commit | |
run: |+ | |
git config user.name 'github-actions[bot]' | |
git config user.email 'github-actions[bot]@users.noreply.github.com' | |
git commit -a -m "[helper] submodule update spread" | |
- name: π¬ Git status | |
run: |+ | |
git status | |
- name: βοΈ GameOfLife push | |
run: git status && git push |