Skip to content

Latest commit

 

History

History
50 lines (34 loc) · 1.74 KB

File metadata and controls

50 lines (34 loc) · 1.74 KB

detect-project-tech

Tries to infer the current project tech - and related aspects - from the source files.

Example

steps:
  - id: detector
    uses: giancosta86/aurora-github/actions/detect-project-tech@v4

  - run: |
      projectTech="${{ steps.detector.outputs.project-tech }}"
      projectArtifact="${{ steps.detector.outputs.project-artifact }}"

      echo "Detected project tech: '$projectTech'"
      echo "Detected project artifact: '$projectArtifact'"

Requirements

  • a Rust crate must have its Cargo.toml.

  • a NodeJS package must have its package.json.

Inputs 📥

Name Type Description Default value
project-directory string The project directory .
shell string The shell used to run commands bash

Outputs 📤

Name Type Description Supported values
project-tech string The detected project tech (see table below)
artifact-descriptor string The artifact descriptor (see table below)

Output values

project-tech artifact-descriptor Supported project types
rust Cargo.toml Rust crate or web assembly
nodejs package.json NodeJS package
(empty string) (empty string) Unsupported project tech

Further references