Tries to infer the current project tech - and related aspects - from the source files.
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'"
-
a Rust crate must have its
Cargo.toml
. -
a NodeJS package must have its
package.json
.
Name | Type | Description | Default value |
---|---|---|---|
project-directory |
string | The project directory | . |
shell |
string | The shell used to run commands | bash |
Name | Type | Description | Supported values |
---|---|---|---|
project-tech |
string | The detected project tech | (see table below) |
artifact-descriptor |
string | The artifact descriptor | (see table below) |
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 |