mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 13:39:24 +08:00
Merge branch 'main' into next
This commit is contained in:
commit
9ca80c483a
51
.github/workflows/get-plugins.yml
vendored
51
.github/workflows/get-plugins.yml
vendored
@ -38,13 +38,52 @@ jobs:
|
|||||||
owner: nocobase
|
owner: nocobase
|
||||||
skip-token-revoke: true
|
skip-token-revoke: true
|
||||||
- id: get-plugins
|
- id: get-plugins
|
||||||
|
name: Get plugins
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
echo "all-plugins=$(gh search repos "props.plugin-type:custom,rc,beta,alpha,unreleased" --owner=nocobase --json name | jq -r 'map(.name) | tostring')" >> "$GITHUB_OUTPUT"
|
function retry() {
|
||||||
echo "custom-plugins=$(gh search repos "props.plugin-type:custom" --owner=nocobase --json name | jq -r 'map(.name) | tostring')" >> "$GITHUB_OUTPUT"
|
local i=0
|
||||||
echo "rc-plugins=$(gh search repos "props.plugin-type:rc" --owner=nocobase --json name | jq -r 'map(.name) | tostring')" >> "$GITHUB_OUTPUT"
|
local plugins="[]"
|
||||||
echo "beta-plugins=$(gh search repos "props.plugin-type:beta,rc" --owner=nocobase --json name | jq -r 'map(.name) | tostring')" >> "$GITHUB_OUTPUT"
|
until [ "$i" -ge 2 ]
|
||||||
echo "alpha-plugins=$(gh search repos "props.plugin-type:alpha,beta,rc" --owner=nocobase --json name | jq -r 'map(.name) | tostring')" >> "$GITHUB_OUTPUT"
|
do
|
||||||
echo "unreleased-plugins=$(gh search repos "props.plugin-type:unreleased" --owner=nocobase --json name | jq -r 'map(.name) | tostring')" >> "$GITHUB_OUTPUT"
|
plugins=$(gh search repos "props.plugin-type:$1" --owner=nocobase --json name | jq -r 'map(.name) | tostring') && [[ "$plugins" != "[]" ]] && break
|
||||||
|
i=$((i+1))
|
||||||
|
sleep 10
|
||||||
|
done
|
||||||
|
echo $plugins
|
||||||
|
}
|
||||||
|
allPlugins=$(retry custom,rc,beta,alpha,unreleased)
|
||||||
|
if [[ "$allPlugins" == "[]" ]]; then
|
||||||
|
echo "Get all plugins empty"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
customPlugins=$(retry custom)
|
||||||
|
if [[ "$customPlugins" == "[]" ]]; then
|
||||||
|
echo "Get custom plugins empty"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
rcPlugins=$(retry rc)
|
||||||
|
rcPlugins=$(retry custom)
|
||||||
|
if [[ "$rcPlugins" == "[]" ]]; then
|
||||||
|
echo "Get rc plugins empty"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
betaPlugins=$(retry beta,rc)
|
||||||
|
if [[ "$betaPlugins" == "[]" ]]; then
|
||||||
|
echo "Get beta plugins empty"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
alphaPlugins=$(retry alpha,beta,rc)
|
||||||
|
if [[ "$alphaPlugins" == "[]" ]]; then
|
||||||
|
echo "Get alpha plugins empty"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
unreleasedPlugins=$(retry unreleased)
|
||||||
|
echo "all-plugins=$allPlugins" >> "$GITHUB_OUTPUT"
|
||||||
|
echo "custom-plugins=$customPlugins" >> "$GITHUB_OUTPUT"
|
||||||
|
echo "rc-plugins=$rcPlugins" >> "$GITHUB_OUTPUT"
|
||||||
|
echo "beta-plugins=$betaPlugins" >> "$GITHUB_OUTPUT"
|
||||||
|
echo "alpha-plugins=$alphaPlugins" >> "$GITHUB_OUTPUT"
|
||||||
|
echo "unreleased-plugins=$unreleasedPlugins" >> "$GITHUB_OUTPUT"
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ steps.app-token.outputs.token }}
|
GH_TOKEN: ${{ steps.app-token.outputs.token }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user