Skip to content

Commit

Permalink
removed the dummy falco project
Browse files Browse the repository at this point in the history
Signed-off-by: Dipankar Das <[email protected]>
  • Loading branch information
dipankardas011 committed Jun 15, 2024
1 parent 4e4ea64 commit 5536d3a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 49 deletions.
25 changes: 0 additions & 25 deletions .github/workflows/falco.yml

This file was deleted.

45 changes: 21 additions & 24 deletions .github/workflows/get-latest-releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 5536d3a

Please sign in to comment.