From a3519e8b9089d188f0ac4903981e03d6f907225f Mon Sep 17 00:00:00 2001 From: William Bartholomew Date: Wed, 1 Jan 2025 13:24:28 -0800 Subject: [PATCH 01/23] Add missing debootstrap dependency to README --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index c31b79b..737d75d 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,7 @@ It is very straight forward to add a new build template: [Step 1] Install requirements: - [Install distrobuilder](https://linuxcontainers.org/distrobuilder/docs/latest/howto/install/) +- [Install debootstrap](https://wiki.debian.org/Debootstrap) - [Install KCL](https://www.kcl-lang.io/docs/user_docs/getting-started/install) - [Install yq](https://mikefarah.gitbook.io/yq#install) (optional) - [Install jq](https://jqlang.github.io/jq/download/) (optional) From 632d9f20c9032c36d7b939e7f6dd4b5a9f7c6a80 Mon Sep 17 00:00:00 2001 From: Soubinan Date: Thu, 9 Jan 2025 10:24:53 -0500 Subject: [PATCH 02/23] improve available ports formatting --- __layout.k | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/__layout.k b/__layout.k index ba14d8f..631df34 100644 --- a/__layout.k +++ b/__layout.k @@ -1037,8 +1037,7 @@ _welcome_msg_cron = """\ _welcome_msg_script = """\ #!/bin/bash -ports=$(ss -ptuln 'sport > :1023 or sport = :80 or sport = :443' | grep -vE 'systemd|next-router|next-render|127.0.0.|%lo' | awk '/^tcp/ && $4 !~ /^(127\.|::1|0\.0\.0\.0)/ {print $5}' | awk -F: '{print $NF}' | sort -u) -num_ports=$(echo $ports | wc -l) +ports=$(ss -ptln "sport > :1023 or sport = :80 or sport = :443" | grep -vE 'systemd|127.0.0.|%lo|::1|Netid|Local' | awk '{print $4}' | awk -F: '{print $NF}' | sort -u) ips=$(ip a|grep 'inet '|awk '{print $2}') printf '\\n' @@ -1054,8 +1053,8 @@ printf '| %-10s | %-20s |\\n' 'Ports' 'Process' printf '+------------+----------------------+\\n' while read -r port; do - application=$(ss -lptn 'sport == :$port' | tail -n +2 | awk '{print $6}' | cut -d'"' -f2 | sort -u) - printf '| %-10s | %-20s |\\n' $port $application + application=$(ss -lptn "sport == :$port" | awk '{print $6}' | cut -d'"' -f2) + printf '| %-10s | %-20s |\\n' \$port $application done <<< $ports # Print table footer From 7ab7b2e0f02fd4434014fee1c5f16bfccf45e48f Mon Sep 17 00:00:00 2001 From: Soubinan Date: Thu, 9 Jan 2025 10:54:30 -0500 Subject: [PATCH 03/23] move workflow_dispatch event preventing others events --- .github/workflows/trigger.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/trigger.yml b/.github/workflows/trigger.yml index 6c4bd99..d201b40 100644 --- a/.github/workflows/trigger.yml +++ b/.github/workflows/trigger.yml @@ -1,7 +1,6 @@ name: Build Trigger on: - workflow_dispatch: pull_request: types: - opened @@ -15,6 +14,7 @@ on: - "./templates/*" schedule: - cron: "0 0 */7 * *" + workflow_dispatch: jobs: init: From 27371d4ed5e2e353c1a1f678f2b51712a39b0706 Mon Sep 17 00:00:00 2001 From: Soubinan KACOU Date: Fri, 10 Jan 2025 16:56:17 -0500 Subject: [PATCH 04/23] Create blank.yml --- .github/workflows/blank.yml | 52 +++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 .github/workflows/blank.yml diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml new file mode 100644 index 0000000..865ff6d --- /dev/null +++ b/.github/workflows/blank.yml @@ -0,0 +1,52 @@ +# This is a basic workflow to help you get started with Actions + +name: BLANK TEST + +# Controls when the workflow will run +on: + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# 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 + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v4 + + # Runs a single command using the runners shell + - name: Run a one-line script + run: echo Hello, world! + + # Runs a set of commands using the runners shell + - name: Run a multi-line script + run: | + echo Add other actions to build, + echo test, and deploy your project. + - name: List all templates + id: all-templates-list + run: | + sudo apt-get install -y jq + echo TEMPLATES_LIST="$(ls templates/* | jq -Rsc 'split("\n")[:-1]')" | tee -a $GITHUB_OUTPUT + if: ${{github.event_name}} != 'pull_request' + + - name: List changed templates + id: changed-templates-list + run: | + sudo apt-get install -y jq + echo TEMPLATES_LIST="$(ls templates/* | jq -Rsc 'split("\n")[:-1]')" | tee -a $GITHUB_OUTPUT + if: ${{github.event_name}} == 'pull_request' + + - name: Check templates list + id: check-templates-list + run: | + echo TEMPLATES_LIST=${{ steps.changed-templates-list.outputs.TEMPLATES_LIST && steps.changed-templates-list.outputs.TEMPLATES_LIST || steps.all-templates-list.outputs.TEMPLATES_LIST }} + + - name: Print templates list + run: | + echo "TEMPLATES_LIST=${{ steps.check-templates-list.outputs.TEMPLATES_LIST}}" From b36d763ecc2ccfb0a19d2aefbb313d6a3c7ad8d0 Mon Sep 17 00:00:00 2001 From: Soubinan KACOU Date: Fri, 10 Jan 2025 17:13:57 -0500 Subject: [PATCH 05/23] Update blank.yml --- .github/workflows/blank.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 865ff6d..7412f41 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -28,24 +28,26 @@ jobs: run: | echo Add other actions to build, echo test, and deploy your project. + - name: List all templates id: all-templates-list run: | sudo apt-get install -y jq - echo TEMPLATES_LIST="$(ls templates/* | jq -Rsc 'split("\n")[:-1]')" | tee -a $GITHUB_OUTPUT + echo all_files="$(ls templates/* | jq -Rsc 'split("\n")[:-1]')" | tee -a $GITHUB_OUTPUT if: ${{github.event_name}} != 'pull_request' - name: List changed templates id: changed-templates-list - run: | - sudo apt-get install -y jq - echo TEMPLATES_LIST="$(ls templates/* | jq -Rsc 'split("\n")[:-1]')" | tee -a $GITHUB_OUTPUT + uses: tj-actions/changed-files@v45 + with: + since_last_remote_commit: true + files: templates/** if: ${{github.event_name}} == 'pull_request' - name: Check templates list id: check-templates-list run: | - echo TEMPLATES_LIST=${{ steps.changed-templates-list.outputs.TEMPLATES_LIST && steps.changed-templates-list.outputs.TEMPLATES_LIST || steps.all-templates-list.outputs.TEMPLATES_LIST }} + echo TEMPLATES_LIST=${{ steps.changed-templates-list.outputs.all_changed_files && steps.changed-templates-list.outputs.all_changed_files || steps.all-templates-list.outputs.all_files }} - name: Print templates list run: | From 04a9411cbc4342b6f6dedfe8f8a464f84d20af5b Mon Sep 17 00:00:00 2001 From: Soubinan KACOU Date: Fri, 10 Jan 2025 17:19:32 -0500 Subject: [PATCH 06/23] Update blank.yml --- .github/workflows/blank.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 7412f41..7329668 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -42,12 +42,12 @@ jobs: with: since_last_remote_commit: true files: templates/** - if: ${{github.event_name}} == 'pull_request' + if: ${{github.event_name}} != 'pull_request' - name: Check templates list id: check-templates-list run: | - echo TEMPLATES_LIST=${{ steps.changed-templates-list.outputs.all_changed_files && steps.changed-templates-list.outputs.all_changed_files || steps.all-templates-list.outputs.all_files }} + echo TEMPLATES_LIST=${{ steps.changed-templates-list.outputs.all_changed_files && steps.changed-templates-list.outputs.all_changed_files || steps.all-templates-list.outputs.all_files }}| tee -a $GITHUB_OUTPUT - name: Print templates list run: | From 40f18230ad70e63499ca3a19da887bce01f5fe26 Mon Sep 17 00:00:00 2001 From: Soubinan KACOU Date: Fri, 10 Jan 2025 17:23:03 -0500 Subject: [PATCH 07/23] Update blank.yml --- .github/workflows/blank.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 7329668..a1e9565 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -47,6 +47,8 @@ jobs: - name: Check templates list id: check-templates-list run: | + echo CHANGED_TEMPLATES=${{ steps.changed-templates-list.outputs.all_changed_files }} + echo ALL_TEMPLATES=${{ steps.all-templates-list.outputs.all_files }} echo TEMPLATES_LIST=${{ steps.changed-templates-list.outputs.all_changed_files && steps.changed-templates-list.outputs.all_changed_files || steps.all-templates-list.outputs.all_files }}| tee -a $GITHUB_OUTPUT - name: Print templates list From 6ed76edd207c7c9c4cd6d32c0435c4705239e114 Mon Sep 17 00:00:00 2001 From: Soubinan KACOU Date: Fri, 10 Jan 2025 19:24:41 -0500 Subject: [PATCH 08/23] Update blank.yml --- .github/workflows/blank.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index a1e9565..a9ea63b 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -33,23 +33,22 @@ jobs: id: all-templates-list run: | sudo apt-get install -y jq - echo all_files="$(ls templates/* | jq -Rsc 'split("\n")[:-1]')" | tee -a $GITHUB_OUTPUT + echo all_files="$(printf '%s' "$(ls templates/*)" | jq -Rsc 'split("\n")')" | tee -a $GITHUB_OUTPUT if: ${{github.event_name}} != 'pull_request' - name: List changed templates - id: changed-templates-list + id: all-changed-templates-list uses: tj-actions/changed-files@v45 with: - since_last_remote_commit: true files: templates/** - if: ${{github.event_name}} != 'pull_request' + if: ${{github.event_name}} == 'pull_request' - name: Check templates list id: check-templates-list run: | - echo CHANGED_TEMPLATES=${{ steps.changed-templates-list.outputs.all_changed_files }} - echo ALL_TEMPLATES=${{ steps.all-templates-list.outputs.all_files }} - echo TEMPLATES_LIST=${{ steps.changed-templates-list.outputs.all_changed_files && steps.changed-templates-list.outputs.all_changed_files || steps.all-templates-list.outputs.all_files }}| tee -a $GITHUB_OUTPUT + ALL_TEMPLATES=${{ steps.all-templates-list.outputs.all_files }} + ALL_CHANGED_TEMPLATES=$(echo -n "${{ steps.all-changed-templates-list.outputs.all_changed_files }}" | jq -Rsc 'split(" ")') + echo TEMPLATES_LIST=${{ steps.all-changed-templates-list.outputs.all_changed_files && "$ALL_CHANGED_TEMPLATES" || "$ALL_TEMPLATES" }}| tee -a $GITHUB_OUTPUT - name: Print templates list run: | From d9076d9f8238df2c445038044b320251964385d9 Mon Sep 17 00:00:00 2001 From: Soubinan KACOU Date: Fri, 10 Jan 2025 19:30:37 -0500 Subject: [PATCH 09/23] Update blank.yml --- .github/workflows/blank.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index a9ea63b..c3dc8fa 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -46,9 +46,9 @@ jobs: - name: Check templates list id: check-templates-list run: | - ALL_TEMPLATES=${{ steps.all-templates-list.outputs.all_files }} - ALL_CHANGED_TEMPLATES=$(echo -n "${{ steps.all-changed-templates-list.outputs.all_changed_files }}" | jq -Rsc 'split(" ")') - echo TEMPLATES_LIST=${{ steps.all-changed-templates-list.outputs.all_changed_files && "$ALL_CHANGED_TEMPLATES" || "$ALL_TEMPLATES" }}| tee -a $GITHUB_OUTPUT + all_files=${{ steps.all-templates-list.outputs.all_files }} + all_changed_files=$(echo -n "${{ steps.all-changed-templates-list.outputs.all_changed_files }}" | jq -Rsc 'split(" ")')| tee -a $GITHUB_OUTPUT + echo TEMPLATES_LIST=${{ steps.all-changed-templates-list.outputs.all_changed_files && steps.check-templates-list.outputs.all_changed_files || steps.all-templates-list.outputs.all_files }}| tee -a $GITHUB_OUTPUT - name: Print templates list run: | From 225d2b67d93b1ab5c06165f41494ea77eff98f77 Mon Sep 17 00:00:00 2001 From: Soubinan KACOU Date: Fri, 10 Jan 2025 19:50:01 -0500 Subject: [PATCH 10/23] Update blank.yml --- .github/workflows/blank.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index c3dc8fa..54161b4 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -46,8 +46,8 @@ jobs: - name: Check templates list id: check-templates-list run: | - all_files=${{ steps.all-templates-list.outputs.all_files }} - all_changed_files=$(echo -n "${{ steps.all-changed-templates-list.outputs.all_changed_files }}" | jq -Rsc 'split(" ")')| tee -a $GITHUB_OUTPUT + echo all_files=${{ steps.all-templates-list.outputs.all_files }} + echo all_changed_files=$(echo -n "${{ steps.all-changed-templates-list.outputs.all_changed_files }}" | jq -Rsc 'split(" ")')| tee -a $GITHUB_OUTPUT echo TEMPLATES_LIST=${{ steps.all-changed-templates-list.outputs.all_changed_files && steps.check-templates-list.outputs.all_changed_files || steps.all-templates-list.outputs.all_files }}| tee -a $GITHUB_OUTPUT - name: Print templates list From e3ccb991f7fa6da24f423cf66df8009eddeb4668 Mon Sep 17 00:00:00 2001 From: Soubinan KACOU Date: Fri, 10 Jan 2025 20:03:11 -0500 Subject: [PATCH 11/23] Update blank.yml --- .github/workflows/blank.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 54161b4..a1ccbda 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -43,11 +43,18 @@ jobs: files: templates/** if: ${{github.event_name}} == 'pull_request' + - name: EEE + id: eee + run: | + echo all_changed_files="templates/infisical.yml templates/omada.yml" | tee -a $GITHUB_OUTPUT + if: ${{github.event_name}} != 'pull_request' + - name: Check templates list id: check-templates-list run: | + echo eee=${{ steps.eee.outputs.all_changed_files }} echo all_files=${{ steps.all-templates-list.outputs.all_files }} - echo all_changed_files=$(echo -n "${{ steps.all-changed-templates-list.outputs.all_changed_files }}" | jq -Rsc 'split(" ")')| tee -a $GITHUB_OUTPUT + echo all_changed_files=$(echo -n "${{ steps.eee.outputs.all_changed_files }}" | jq -Rsc 'split(" ")')| tee -a $GITHUB_OUTPUT echo TEMPLATES_LIST=${{ steps.all-changed-templates-list.outputs.all_changed_files && steps.check-templates-list.outputs.all_changed_files || steps.all-templates-list.outputs.all_files }}| tee -a $GITHUB_OUTPUT - name: Print templates list From d43f1c98fd10f8cec1ff3563fd7bf9a169dccadb Mon Sep 17 00:00:00 2001 From: Soubinan KACOU Date: Fri, 10 Jan 2025 20:08:00 -0500 Subject: [PATCH 12/23] Update blank.yml --- .github/workflows/blank.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index a1ccbda..1c485e9 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -55,7 +55,7 @@ jobs: echo eee=${{ steps.eee.outputs.all_changed_files }} echo all_files=${{ steps.all-templates-list.outputs.all_files }} echo all_changed_files=$(echo -n "${{ steps.eee.outputs.all_changed_files }}" | jq -Rsc 'split(" ")')| tee -a $GITHUB_OUTPUT - echo TEMPLATES_LIST=${{ steps.all-changed-templates-list.outputs.all_changed_files && steps.check-templates-list.outputs.all_changed_files || steps.all-templates-list.outputs.all_files }}| tee -a $GITHUB_OUTPUT + echo TEMPLATES_LIST=${{ steps.all-changed-templates-list.outputs.all_changed_files && "steps.check-templates-list.outputs.all_changed_files" || "steps.all-templates-list.outputs.all_files" }}| tee -a $GITHUB_OUTPUT - name: Print templates list run: | From 4217dafee3a92a47def74bd38e34fa73230a62f7 Mon Sep 17 00:00:00 2001 From: Soubinan KACOU Date: Fri, 10 Jan 2025 20:08:55 -0500 Subject: [PATCH 13/23] Update blank.yml --- .github/workflows/blank.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 1c485e9..81a8d68 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -55,7 +55,7 @@ jobs: echo eee=${{ steps.eee.outputs.all_changed_files }} echo all_files=${{ steps.all-templates-list.outputs.all_files }} echo all_changed_files=$(echo -n "${{ steps.eee.outputs.all_changed_files }}" | jq -Rsc 'split(" ")')| tee -a $GITHUB_OUTPUT - echo TEMPLATES_LIST=${{ steps.all-changed-templates-list.outputs.all_changed_files && "steps.check-templates-list.outputs.all_changed_files" || "steps.all-templates-list.outputs.all_files" }}| tee -a $GITHUB_OUTPUT + echo TEMPLATES_LIST="${{ steps.all-changed-templates-list.outputs.all_changed_files && steps.check-templates-list.outputs.all_changed_files || steps.all-templates-list.outputs.all_files }}"| tee -a $GITHUB_OUTPUT - name: Print templates list run: | From d55e1360a947d0828c6a7000ea8f18d5b544cc33 Mon Sep 17 00:00:00 2001 From: Soubinan KACOU Date: Fri, 10 Jan 2025 20:14:57 -0500 Subject: [PATCH 14/23] Update blank.yml --- .github/workflows/blank.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 81a8d68..959cbdc 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -55,7 +55,7 @@ jobs: echo eee=${{ steps.eee.outputs.all_changed_files }} echo all_files=${{ steps.all-templates-list.outputs.all_files }} echo all_changed_files=$(echo -n "${{ steps.eee.outputs.all_changed_files }}" | jq -Rsc 'split(" ")')| tee -a $GITHUB_OUTPUT - echo TEMPLATES_LIST="${{ steps.all-changed-templates-list.outputs.all_changed_files && steps.check-templates-list.outputs.all_changed_files || steps.all-templates-list.outputs.all_files }}"| tee -a $GITHUB_OUTPUT + echo TEMPLATES_LIST="${{ steps.all-changed-templates-list.outputs.all_changed_files != [] && steps.check-templates-list.outputs.all_changed_files || steps.all-templates-list.outputs.all_files }}"| tee -a $GITHUB_OUTPUT - name: Print templates list run: | From ae1f94e0770e8ddb0c649986b62d5d6b1d35ca85 Mon Sep 17 00:00:00 2001 From: Soubinan KACOU Date: Fri, 10 Jan 2025 20:59:11 -0500 Subject: [PATCH 15/23] Update blank.yml --- .github/workflows/blank.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 959cbdc..fcc4284 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -55,7 +55,7 @@ jobs: echo eee=${{ steps.eee.outputs.all_changed_files }} echo all_files=${{ steps.all-templates-list.outputs.all_files }} echo all_changed_files=$(echo -n "${{ steps.eee.outputs.all_changed_files }}" | jq -Rsc 'split(" ")')| tee -a $GITHUB_OUTPUT - echo TEMPLATES_LIST="${{ steps.all-changed-templates-list.outputs.all_changed_files != [] && steps.check-templates-list.outputs.all_changed_files || steps.all-templates-list.outputs.all_files }}"| tee -a $GITHUB_OUTPUT + echo TEMPLATES_LIST="${{ steps.all-changed-templates-list.outputs.all_changed_files != '[]' && steps.check-templates-list.outputs.all_changed_files || steps.all-templates-list.outputs.all_files }}"| tee -a $GITHUB_OUTPUT - name: Print templates list run: | From 37753e298df2460b9f80b65e1d4c87d801a19258 Mon Sep 17 00:00:00 2001 From: Soubinan KACOU Date: Fri, 10 Jan 2025 21:09:02 -0500 Subject: [PATCH 16/23] Update blank.yml --- .github/workflows/blank.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index fcc4284..551fb2a 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -54,7 +54,7 @@ jobs: run: | echo eee=${{ steps.eee.outputs.all_changed_files }} echo all_files=${{ steps.all-templates-list.outputs.all_files }} - echo all_changed_files=$(echo -n "${{ steps.eee.outputs.all_changed_files }}" | jq -Rsc 'split(" ")')| tee -a $GITHUB_OUTPUT + echo all_changed_files=$(echo -n ${{ steps.eee.outputs.all_changed_files }} | jq -Rsc 'split(" ")')| tee -a $GITHUB_OUTPUT echo TEMPLATES_LIST="${{ steps.all-changed-templates-list.outputs.all_changed_files != '[]' && steps.check-templates-list.outputs.all_changed_files || steps.all-templates-list.outputs.all_files }}"| tee -a $GITHUB_OUTPUT - name: Print templates list From 44f422a9f17cb388f92b52554c2568836ef1d77b Mon Sep 17 00:00:00 2001 From: Soubinan KACOU Date: Fri, 10 Jan 2025 21:18:48 -0500 Subject: [PATCH 17/23] Update blank.yml --- .github/workflows/blank.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 551fb2a..36b1695 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -29,11 +29,10 @@ jobs: echo Add other actions to build, echo test, and deploy your project. - - name: List all templates - id: all-templates-list + - name: EEE + id: eee run: | - sudo apt-get install -y jq - echo all_files="$(printf '%s' "$(ls templates/*)" | jq -Rsc 'split("\n")')" | tee -a $GITHUB_OUTPUT + echo all_changed_files="templates/infisical.yml templates/omada.yml" | tee -a $GITHUB_OUTPUT if: ${{github.event_name}} != 'pull_request' - name: List changed templates @@ -43,19 +42,20 @@ jobs: files: templates/** if: ${{github.event_name}} == 'pull_request' - - name: EEE - id: eee + - name: List all templates + id: all-templates-list run: | - echo all_changed_files="templates/infisical.yml templates/omada.yml" | tee -a $GITHUB_OUTPUT + sudo apt-get install -y jq + echo all_files="$(printf '%s' "$(ls templates/*)" | jq -Rsc 'split("\n")')" | tee -a $GITHUB_OUTPUT + echo all_changed_files=$(echo -n ${{ steps.eee.outputs.all_changed_files }} | jq -Rsc 'split(" ")')| tee -a $GITHUB_OUTPUT if: ${{github.event_name}} != 'pull_request' - name: Check templates list id: check-templates-list run: | - echo eee=${{ steps.eee.outputs.all_changed_files }} echo all_files=${{ steps.all-templates-list.outputs.all_files }} - echo all_changed_files=$(echo -n ${{ steps.eee.outputs.all_changed_files }} | jq -Rsc 'split(" ")')| tee -a $GITHUB_OUTPUT - echo TEMPLATES_LIST="${{ steps.all-changed-templates-list.outputs.all_changed_files != '[]' && steps.check-templates-list.outputs.all_changed_files || steps.all-templates-list.outputs.all_files }}"| tee -a $GITHUB_OUTPUT + echo all_changed_files=${{ steps.all-templates-list.outputs.all_changed_files }} + echo TEMPLATES_LIST="${{ steps.all-changed-templates-list.outputs.all_changed_files != '[]' && steps.all-templates-list.outputs.all_changed_files || steps.all-templates-list.outputs.all_files }}"| tee -a $GITHUB_OUTPUT - name: Print templates list run: | From b688ef32a0db29d7e87f1aa6904e7e3fa40b55e4 Mon Sep 17 00:00:00 2001 From: Soubinan KACOU Date: Fri, 10 Jan 2025 21:20:44 -0500 Subject: [PATCH 18/23] Update blank.yml --- .github/workflows/blank.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 36b1695..4c1f1c0 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -32,7 +32,7 @@ jobs: - name: EEE id: eee run: | - echo all_changed_files="templates/infisical.yml templates/omada.yml" | tee -a $GITHUB_OUTPUT + echo all_changed_files="" | tee -a $GITHUB_OUTPUT if: ${{github.event_name}} != 'pull_request' - name: List changed templates From d4122ec36197becff22042e7c4660b5851f35e86 Mon Sep 17 00:00:00 2001 From: Soubinan KACOU Date: Fri, 10 Jan 2025 21:22:13 -0500 Subject: [PATCH 19/23] Update blank.yml --- .github/workflows/blank.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 4c1f1c0..67e989f 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -55,7 +55,7 @@ jobs: run: | echo all_files=${{ steps.all-templates-list.outputs.all_files }} echo all_changed_files=${{ steps.all-templates-list.outputs.all_changed_files }} - echo TEMPLATES_LIST="${{ steps.all-changed-templates-list.outputs.all_changed_files != '[]' && steps.all-templates-list.outputs.all_changed_files || steps.all-templates-list.outputs.all_files }}"| tee -a $GITHUB_OUTPUT + echo TEMPLATES_LIST=${{ steps.all-changed-templates-list.outputs.all_changed_files != "[]" && steps.all-templates-list.outputs.all_changed_files || steps.all-templates-list.outputs.all_files }}| tee -a $GITHUB_OUTPUT - name: Print templates list run: | From bd4083f32ae3d542f33bd337418a6ebb6c9fc3b4 Mon Sep 17 00:00:00 2001 From: Soubinan KACOU Date: Fri, 10 Jan 2025 22:00:27 -0500 Subject: [PATCH 20/23] Update blank.yml --- .github/workflows/blank.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 67e989f..06b85a4 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -47,7 +47,7 @@ jobs: run: | sudo apt-get install -y jq echo all_files="$(printf '%s' "$(ls templates/*)" | jq -Rsc 'split("\n")')" | tee -a $GITHUB_OUTPUT - echo all_changed_files=$(echo -n ${{ steps.eee.outputs.all_changed_files }} | jq -Rsc 'split(" ")')| tee -a $GITHUB_OUTPUT + echo all_changed_files=$(echo -n ${{ steps.eee.outputs.all_changed_files }} | jq -Rsc 'split(" ")') | tee -a $GITHUB_OUTPUT if: ${{github.event_name}} != 'pull_request' - name: Check templates list @@ -55,7 +55,7 @@ jobs: run: | echo all_files=${{ steps.all-templates-list.outputs.all_files }} echo all_changed_files=${{ steps.all-templates-list.outputs.all_changed_files }} - echo TEMPLATES_LIST=${{ steps.all-changed-templates-list.outputs.all_changed_files != "[]" && steps.all-templates-list.outputs.all_changed_files || steps.all-templates-list.outputs.all_files }}| tee -a $GITHUB_OUTPUT + echo TEMPLATES_LIST=${{ fromJson(steps.all-changed-templates-list.outputs.all_changed_files)[0] != null && steps.all-templates-list.outputs.all_changed_files || steps.all-templates-list.outputs.all_files }} | tee -a $GITHUB_OUTPUT - name: Print templates list run: | From 3a61d05a5038b23853bb1e63dd815e3def795725 Mon Sep 17 00:00:00 2001 From: Soubinan KACOU Date: Fri, 10 Jan 2025 22:22:39 -0500 Subject: [PATCH 21/23] Update blank.yml --- .github/workflows/blank.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 06b85a4..caed4a7 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -55,7 +55,7 @@ jobs: run: | echo all_files=${{ steps.all-templates-list.outputs.all_files }} echo all_changed_files=${{ steps.all-templates-list.outputs.all_changed_files }} - echo TEMPLATES_LIST=${{ fromJson(steps.all-changed-templates-list.outputs.all_changed_files)[0] != null && steps.all-templates-list.outputs.all_changed_files || steps.all-templates-list.outputs.all_files }} | tee -a $GITHUB_OUTPUT + echo TEMPLATES_LIST=${{ (steps.all-changed-templates-list.outputs.all_changed_files != '[]') && steps.all-templates-list.outputs.all_changed_files || steps.all-templates-list.outputs.all_files }} | tee -a $GITHUB_OUTPUT - name: Print templates list run: | From e2a6e66a45c1681174f42f921ed557928b5bccdb Mon Sep 17 00:00:00 2001 From: Soubinan KACOU Date: Fri, 10 Jan 2025 22:32:59 -0500 Subject: [PATCH 22/23] Update blank.yml --- .github/workflows/blank.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index caed4a7..3fa09c9 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -55,7 +55,7 @@ jobs: run: | echo all_files=${{ steps.all-templates-list.outputs.all_files }} echo all_changed_files=${{ steps.all-templates-list.outputs.all_changed_files }} - echo TEMPLATES_LIST=${{ (steps.all-changed-templates-list.outputs.all_changed_files != '[]') && steps.all-templates-list.outputs.all_changed_files || steps.all-templates-list.outputs.all_files }} | tee -a $GITHUB_OUTPUT + echo TEMPLATES_LIST=${{ (steps.all-templates-list.outputs.all_changed_files != '[]') && steps.all-templates-list.outputs.all_changed_files || steps.all-templates-list.outputs.all_files }} | tee -a $GITHUB_OUTPUT - name: Print templates list run: | From d55806803483d6b07afd11744847f1e08cf95938 Mon Sep 17 00:00:00 2001 From: Soubinan KACOU Date: Fri, 10 Jan 2025 22:36:54 -0500 Subject: [PATCH 23/23] Update blank.yml --- .github/workflows/blank.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 3fa09c9..35c1a73 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -32,7 +32,7 @@ jobs: - name: EEE id: eee run: | - echo all_changed_files="" | tee -a $GITHUB_OUTPUT + echo all_changed_files="templates/infisical.yml templates/omada.yml" | tee -a $GITHUB_OUTPUT if: ${{github.event_name}} != 'pull_request' - name: List changed templates