Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,18 @@ jobs:
jq '.[] | {name, type, goos, goarch, path}' dist/artifacts.json
exit 0
fi
ARCHIVE=$(jq -r --arg arch "$RUNNER_ARCH" \
'[.[] | select(.type=="Archive" and .goos=="linux" and .goarch==$arch and (.name|startswith("workflow-plugin-okta")))] | .[0].path // ""' \
dist/artifacts.json)
if [ -z "$ARCHIVE" ] || [ "$ARCHIVE" = "null" ]; then
echo "::warning::No matching linux/$RUNNER_ARCH archive in dist/artifacts.json; skipping verify-capabilities"
jq '.[] | {name, type, goos, goarch, path}' dist/artifacts.json
exit 0
fi
VERIFY_DIR=$(mktemp -d)
tar -xzf "$ARCHIVE" -C "$VERIFY_DIR" plugin.json plugin.contracts.json LICENSE
chmod +x "$BIN"
"${{ runner.temp }}/wfctl-bin/wfctl" plugin verify-capabilities --binary "$BIN" .
"${{ runner.temp }}/wfctl-bin/wfctl" plugin verify-capabilities --binary "$BIN" "$VERIFY_DIR"
- name: Publish GitHub release
uses: actions/github-script@v7
with:
Expand Down
Loading