From 5536d3a5157cff6c1764b6898f2527ab0c0de7bc Mon Sep 17 00:00:00 2001 From: Dipankar Das <65275144+dipankardas011@users.noreply.github.com> Date: Sat, 15 Jun 2024 23:46:08 +0530 Subject: [PATCH] removed the dummy falco project Signed-off-by: Dipankar Das <65275144+dipankardas011@users.noreply.github.com> --- .github/workflows/falco.yml | 25 ------------- .github/workflows/get-latest-releases.yml | 45 +++++++++++------------ 2 files changed, 21 insertions(+), 49 deletions(-) delete mode 100644 .github/workflows/falco.yml diff --git a/.github/workflows/falco.yml b/.github/workflows/falco.yml deleted file mode 100644 index cc507c8..0000000 --- a/.github/workflows/falco.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Get and Update Latest Releases - -on: - workflow_dispatch: - inputs: - version: - description: 'version tag for falco' - default: 'latest' - required: true - type: string - workflow_call: - inputs: - version: - description: 'version tag for falco' - default: 'latest' - required: true - type: string - -jobs: - TBD: - runs-on: ubuntu-latest - steps: - - name: check the triggered call - run: | - echo "Version: ${{ inputs.image_tag }}" diff --git a/.github/workflows/get-latest-releases.yml b/.github/workflows/get-latest-releases.yml index 5152ef4..6d60af4 100644 --- a/.github/workflows/get-latest-releases.yml +++ b/.github/workflows/get-latest-releases.yml @@ -16,8 +16,8 @@ concurrency: jobs: get-latest-version: runs-on: ubuntu-latest - outputs: - is-falco-updated: ${{ steps.check-updates.outputs.FALCO }} + # outputs: + # is-falco-updated: ${{ steps.check-updates.outputs.FALCO }} steps: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 @@ -31,27 +31,24 @@ jobs: run: | go run repo-variable-writer.go - - name: Dispatch - id: check-updates - env: - file: /tmp/updates.json # generated by go program - run: | - if jq -e --arg val "falco" '.proj_names | index($val) != null' "$file" > /dev/null; then - echo "Element '$value' found in the proj_names array." - echo "FALCO=true" >> $GITHUB_OUTPUT - else - echo "Element 'falco' not found in the proj_names array." - echo "FALCO=false" >> $GITHUB_OUTPUT - fi + # - name: Dispatch + # id: check-updates + # env: + # file: /tmp/updates.json # generated by go program + # run: | + # if jq -e --arg val "falco" '.proj_names | index($val) != null' "$file" > /dev/null; then + # echo "Element '$value' found in the proj_names array." + # echo "FALCO=true" >> $GITHUB_OUTPUT + # else + # echo "Element 'falco' not found in the proj_names array." + # echo "FALCO=false" >> $GITHUB_OUTPUT + # fi - falco-proj: - uses: ./.github/workflows/falco.yml - needs: ["get-latest-version"] - if: ${{ needs.check-updates.outputs.is-falco-updated }} == 'true' - secrets: inherit - with: - version: ${{ vars.FALCO_VERSION }} # need to check if it gets the updated value - # permissions: - # packages: write - # contents: read + # falco-proj: + # uses: .github/workflows/falco.yml + # needs: ["get-latest-version"] + # if: ${{ needs.check-updates.outputs.is-falco-updated }} == 'true' + # secrets: inherit + # with: + # version: ${{ vars.FALCO_VERSION }} # need to check if it gets the updated value