Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore: Attempt to fix conditionals in dependencies.yaml #109

Merged
Show file tree
Hide file tree
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: 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