Skip to content

Commit

Permalink
Chore: Test repository content inspection (#111)
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Watkins <[email protected]>
  • Loading branch information
ModeSevenIndustrialSolutions authored Oct 21, 2024
1 parent 4d24d63 commit cf93bdf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
9 changes: 4 additions & 5 deletions .github/actions/repository-content-classify/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ runs:
echo "tox_config=$REPO_TOX_CONFIG" >> "$GITHUB_OUTPUT"
echo "jupyter_notebooks=$REPO_JUPYTER_NOTEBOOKS" >> "$GITHUB_OUTPUT"
set -xv
### GitHub Summary ###
echo '# 🔍 Repository Content Inspection' >> "$GITHUB_STEP_SUMMARY"
Expand All @@ -108,15 +110,12 @@ runs:
for VARIABLE in $(declare | grep REPO); do
VAR_NAME=$(echo "$VARIABLE" | awk -F= '{print $1}')
VAR_BOOLEAN=$(echo "$VARIABLE" | awk -F= '{print $2}')
# The string subsitution below makes output easier to read
# sed -e 's/true/✅/' -e 's/false/❌/'
if [ $VAR_BOOLEAN = "true" ]; then
if [ "$VAR_BOOLEAN" = "true" ]; then
VAR_BOOLEAN="✅"
else
VAR_BOOLEAN="❌"
fi
export $VAR_NAME=$VAR_BOOLEAN
export $VAR_NAME="$VAR_BOOLEAN"
done
echo "Supported content types are listed in the table below" >> "$GITHUB_STEP_SUMMARY"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/primary.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
ONE_PASSWORD_PRODUCTION: ${{ secrets.ONE_PASSWORD_PRODUCTION }}

repository:
name: "Repository Inspection"
name: "Inspect Repository"
uses: os-climate/osc-github-devops/.github/workflows/repository.yaml@main
permissions:
# Required for action that creates labels: github-mandatory-labels
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/repository.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: 2024 The Linux Foundation <https://linuxfoundation.org>

name: "🔍 [R] Repository Inspection"
name: "🔍 [R] Inspect Repository"

# yamllint disable-line rule:truthy
on:
Expand All @@ -14,7 +14,7 @@ on:

jobs:
repository:
name: "Repository Checks"
name: "Content Checks"
runs-on: ubuntu-latest
outputs:
# Classify repository content
Expand Down

0 comments on commit cf93bdf

Please sign in to comment.