ci: auto-regenerate files
This commit is contained in:
@@ -393,6 +393,7 @@ There are several ways to setup metrics, each having its advantages and disadvan
|
||||
|
||||
Additional resources for setup:
|
||||
* [🏦 Configure metrics for organizations](/.github/readme/partials/documentation/organizations.md)
|
||||
* [🏠 Run metrics on self-hosted runners](/.github/readme/partials/documentation/selfhosted.md)
|
||||
* [🧰 Template/Plugin compatibility matrix](/.github/readme/partials/documentation/compatibility.md)
|
||||
## 🖼️ Templates
|
||||
|
||||
|
||||
16
action.yml
generated
16
action.yml
generated
@@ -1170,10 +1170,24 @@ runs:
|
||||
using: composite
|
||||
steps:
|
||||
- run: |
|
||||
# Create environment file from inputs and GitHub variables
|
||||
# Check runner compatibility
|
||||
echo "::group::Metrics docker image setup"
|
||||
echo "GitHub action: $METRICS_ACTION ($METRICS_ACTION_PATH)"
|
||||
cd $METRICS_ACTION_PATH
|
||||
for DEPENDENCY in docker jq; do
|
||||
if ! which $DEPENDENCY; then
|
||||
echo '::error::"$DEPENDENCY" is not installed on current runner but is needed to run metrics'
|
||||
MISSING_DEPENDENCIES=1
|
||||
fi
|
||||
done
|
||||
if [[ $MISSING_DEPENDENCIES == "1" ]]; then
|
||||
echo "Runner compatibility: missing dependencies"
|
||||
exit 1
|
||||
else
|
||||
echo "Runner compatibility: compatible"
|
||||
fi
|
||||
|
||||
# Create environment file from inputs and GitHub variables
|
||||
touch .env
|
||||
for INPUT in $(echo $INPUTS | jq -r 'to_entries|map("INPUT_\(.key|ascii_upcase)=\(.value|@uri)")|.[]'); do
|
||||
echo $INPUT >> .env
|
||||
|
||||
Reference in New Issue
Block a user