Skip to content

Commit

Permalink
🐛 fix providers build & release (#2256)
Browse files Browse the repository at this point in the history
* 🐛 fix providers build & release
  • Loading branch information
mariuskimmina authored Oct 16, 2023
1 parent e6976c2 commit 2a7cb1c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/providers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ jobs:
fi
cd providers/$p
REPO_VERSION=$(grep Version config/config.go | cut -f2 -d\")
DIST_VERSION=$(curl -s https://releases.mondoo.com/providers/${p}/latest.json | jq -r .version)
STATUS_CODE=$(curl -s -o /dev/null -I -w "%{http_code}" https://releases.mondoo.com/providers/atlassian/latest.json)
if [ "$STATUS_CODE" -eq "404" ]; then
DIST_VERSION="unreleased"
else
DIST_VERSION=$(curl -s https://releases.mondoo.com/providers/${p}/latest.json | jq -r .version)
fi
printf "PROVIDER $p:\n Local version: $REPO_VERSION\n Remote version: $DIST_VERSION\n"
if [[ $REPO_VERSION != $DIST_VERSION ]]; then
echo " Adding $p to build list"
Expand Down Expand Up @@ -157,4 +162,4 @@ jobs:
token: ${{ secrets.RELEASR_ACTION_TOKEN }}
repository: "mondoohq/releasr"
event-type: reindex
client-payload: '{ }'
client-payload: '{ }'

0 comments on commit 2a7cb1c

Please sign in to comment.