Skip to content

Commit

Permalink
fix: empty commit for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Filipe Forattini committed Jul 11, 2022
1 parent c754fd6 commit e1771d0
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/actions/pipeline-config-scrapper/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .github/actions/pipeline-config-scrapper/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .github/workflows/app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
uses: actions/checkout@v3

# job
- name: Config | Pipeline config scrapper
- name: Pipeline config scrapper
id: analysis
uses: filipeforattini/ff-iac-github-actions/.github/actions/pipeline-config-scrapper@main
with:
Expand Down
4 changes: 2 additions & 2 deletions src/actions/pipeline-config-scrapper/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async function action() {
[
"<details><summary>Received context:</summary>\n\n```json \n",
JSON.stringify(github.context, null, 2),
" \n\n ```</details>",
" \n\n ``` \n</details>",
].join(''),
true
)
Expand Down Expand Up @@ -61,7 +61,7 @@ async function action() {
[
"<details><summary>Analysis:</summary>\n\n```json \n",
JSON.stringify(analysis, null, 2),
" \n\n ```</details>",
" \n\n ``` \n</details>",
].join(''),
true
)
Expand Down
6 changes: 5 additions & 1 deletion src/actions/pipeline-config-scrapper/src/repository.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ const path = require('path')

module.exports = async (analysis) => {
analysis.features = {
hasReleaseRC: fs.existsSync(path.join(analysis.root, '.releaserc.json'))
hasReleaseRC: fs.existsSync(path.join(analysis.root, '.releaserc.json')),
hasDockerfile: fs.existsSync(path.join(analysis.root, 'Dockerfile')),
}

analysis.outputs.feature_has_releaserc = analysis.features.hasReleaseRC
analysis.outputs.feature_has_dockerfile = analysis.features.hasDockerfile
}

0 comments on commit e1771d0

Please sign in to comment.