Skip to content

Commit

Permalink
Chore: Attempt to fix conditionals in dependencies.yaml (#109)
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 175543c commit df1c746
Show file tree
Hide file tree
Showing 4 changed files with 393 additions and 377 deletions.
12 changes: 6 additions & 6 deletions .github/actions/repository-content-classify/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,22 @@ description: "Scans repository content and identifies supported content"
outputs:
REPO_PYTHON_PROJECT:
description: "Repository contains a Python project with file: pyproject.toml"
value: ${{ steps.classification.outputs.python_project }}
value: ${{ steps.classification.outputs.repo_python_project }}
REPO_NODE_JS_PROJECT:
description: "Repository contains a Node.js project with file: package.json"
value: ${{ steps.classification.outputs.node_js_project }}
value: ${{ steps.classification.outputs.repo_node_js_project }}
REPO_MAVEN_CONFIG:
description: "Repository contains Maven project with file: pom.xml"
value: ${{ steps.classification.outputs.maven_config }}
value: ${{ steps.classification.outputs.repo_maven_config }}
REPO_GRADLE_CONFIG:
description: "Repository contains Gradle project with file(s): settings.gradle*"
value: ${{ steps.classification.outputs.gradle_config }}
value: ${{ steps.classification.outputs.repo_gradle_config }}
REPO_JUPYTER_NOTEBOOKS:
description: "Repository contains Jupyter Notebooks with file(s): *.ipynb"
value: ${{ steps.classification.outputs.jupyter_notebooks }}
value: ${{ steps.classification.outputs.repo_jupyter_notebooks }}
REPO_TOX_CONFIG:
description: "Repository contains a TOX configuration file: tox.ini"
value: ${{ steps.classification.outputs.tox_config }}
value: ${{ steps.classification.outputs.repo_tox_config }}

runs:
using: "composite"
Expand Down
17 changes: 7 additions & 10 deletions .github/workflows/dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,26 @@
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: 2024 The Linux Foundation <https://linuxfoundation.org>

name: "♻️ Python Dependencies"
name: "♻️ Update Dependencies"

# yamllint disable-line rule:truthy
on:
workflow_dispatch:
schedule:
- cron: "0 8 1 * *"
pull_request:
types: [opened, reopened, edited, synchronize, closed]
push:
branches:
- "**/**"
- "**"
- "!update-devops-tooling"
- "!**/update-pdm-lock"

env:
DEFAULT-PYTHON: "3.11"

jobs:
classify-content:
name: "Inspect Repository"
runs-on: ubuntu-latest
outputs:
python: ${{ steps.classify.outputs.python }}
notebooks: ${{ steps.classify.outputs.notebooks }}
repo_python_project: ${{ steps.classify.outputs.repo_python_project }}
repo_jupyter_notebooks: ${{ steps.classify.outputs.repo_jupyter_notebooks }}

steps:
- uses: actions/checkout@v4
Expand All @@ -40,7 +36,8 @@ jobs:
needs:
- classify-content
# Only run if Python code is present in repository
if: needs.classify-content.outputs.python == 'true'
if: needs.classify-content.outputs.repo_python_project == 'true' ||
needs.classify-content.outputs.repo_jupyter_notebooks == 'true'
runs-on: ubuntu-latest
permissions:
# IMPORTANT: mandatory to raise the PR
Expand Down
Loading

0 comments on commit df1c746

Please sign in to comment.