Skip to content

Commit

Permalink
symbolic links
Browse files Browse the repository at this point in the history
Signed-off-by: 0ssigeno <s.berni@certego.net>
  • Loading branch information
0ssigeno committed Feb 19, 2024
1 parent c04a60d commit a8d39bd
Show file tree
Hide file tree
Showing 96 changed files with 1,020 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/.github/.github
1 change: 1 addition & 0 deletions .github/.github/.gitignore
1 change: 1 addition & 0 deletions .github/.github/.husky/pre-commit
1 change: 1 addition & 0 deletions .github/.github/.pre-commit-config.yaml
1 change: 1 addition & 0 deletions .github/.github/Certego.png
1 change: 1 addition & 0 deletions .github/.github/README.md
1 change: 1 addition & 0 deletions .github/.github/actions/apt_requirements/action.yml
1 change: 1 addition & 0 deletions .github/.github/actions/codeql/action.yml
1 change: 1 addition & 0 deletions .github/.github/actions/node_linter/action.yml
1 change: 1 addition & 0 deletions .github/.github/actions/python_linter/action.yml
1 change: 1 addition & 0 deletions .github/.github/actions/services/action.yml
1 change: 1 addition & 0 deletions .github/.github/configurations/README.md
1 change: 1 addition & 0 deletions .github/.github/configurations/node_linters/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .github/.github/configurations/python_linters/.bandit.yaml
1 change: 1 addition & 0 deletions .github/.github/configurations/python_linters/.black
1 change: 1 addition & 0 deletions .github/.github/configurations/python_linters/.flake8
1 change: 1 addition & 0 deletions .github/.github/configurations/python_linters/.isort.cfg
1 change: 1 addition & 0 deletions .github/.github/configurations/python_linters/.pylintrc
1 change: 1 addition & 0 deletions .github/.github/configurations/python_linters/README.md
1 change: 1 addition & 0 deletions .github/.github/configurations/workflows/_node.yml
1 change: 1 addition & 0 deletions .github/.github/configurations/workflows/_python.yml
1 change: 1 addition & 0 deletions .github/.github/configurations/workflows/release.yml
1 change: 1 addition & 0 deletions .github/.github/dependabot.yml
1 change: 1 addition & 0 deletions .github/.github/workflows/_detect_changes.yml
1 change: 1 addition & 0 deletions .github/.github/workflows/_node.yml
1 change: 1 addition & 0 deletions .github/.github/workflows/_python.yml
1 change: 1 addition & 0 deletions .github/.github/workflows/_release_and_tag.yml
1 change: 1 addition & 0 deletions .github/.github/workflows/pull_request_automation.yml
1 change: 1 addition & 0 deletions .github/.github/workflows/release.yml
1 change: 1 addition & 0 deletions .github/.husky/pre-commit
1 change: 1 addition & 0 deletions .github/.pre-commit-config.yaml
1 change: 1 addition & 0 deletions .github/CHANGELOG.md
1 change: 1 addition & 0 deletions .github/Certego.png
1 change: 1 addition & 0 deletions .github/actions/apt_requirements/action.yml
1 change: 1 addition & 0 deletions .github/actions/codeql/action.yml
1 change: 1 addition & 0 deletions .github/actions/node_linter/action.yml
1 change: 1 addition & 0 deletions .github/actions/python_linter/action.yml
1 change: 1 addition & 0 deletions .github/actions/services/action.yml
1 change: 1 addition & 0 deletions .github/configurations/README.md
1 change: 1 addition & 0 deletions .github/configurations/node_linters/README.md
1 change: 1 addition & 0 deletions .github/configurations/node_linters/eslint/.eslintrc.json
1 change: 1 addition & 0 deletions .github/configurations/node_linters/eslint/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .github/configurations/node_linters/eslint/package.json
1 change: 1 addition & 0 deletions .github/configurations/node_linters/stylelint/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .github/configurations/node_linters/stylelint/package.json
1 change: 1 addition & 0 deletions .github/configurations/python_linters/.bandit.yaml
1 change: 1 addition & 0 deletions .github/configurations/python_linters/.black
1 change: 1 addition & 0 deletions .github/configurations/python_linters/.flake8
1 change: 1 addition & 0 deletions .github/configurations/python_linters/.isort.cfg
1 change: 1 addition & 0 deletions .github/configurations/python_linters/.pylintrc
1 change: 1 addition & 0 deletions .github/configurations/python_linters/README.md
1 change: 1 addition & 0 deletions .github/configurations/workflows/_detect_changes.yml
1 change: 1 addition & 0 deletions .github/configurations/workflows/_node.yml
1 change: 1 addition & 0 deletions .github/configurations/workflows/_python.yml
1 change: 1 addition & 0 deletions .github/configurations/workflows/_release_and_tag.yml
1 change: 1 addition & 0 deletions .github/configurations/workflows/release.yml
1 change: 1 addition & 0 deletions .github/dependabot.yml
1 change: 1 addition & 0 deletions .github/workflows/_detect_changes.yml
1 change: 1 addition & 0 deletions .github/workflows/_node.yml
1 change: 1 addition & 0 deletions .github/workflows/_python.yml
1 change: 1 addition & 0 deletions .github/workflows/_release_and_tag.yml
1 change: 1 addition & 0 deletions .github/workflows/pull_request_automation.yml
1 change: 1 addition & 0 deletions .github/workflows/release.yml
71 changes: 71 additions & 0 deletions configurations/workflows/_detect_changes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Reusable detect changes workflow
on:
workflow_call:
inputs:
backend_directories:
description: Backend directories separated by spaces
required: false
type: string
default: ''

frontend_directories:
description: Frontend directories separated by spaces
required: false
type: string
default: ''

ubuntu_version:
description: Ubuntu version to use
type: string
default: latest
required: false

outputs:
backend:
description: Number of files changed in backend
value: ${{ jobs.detect-changes.outputs.backend }}

frontend:
description: Number of files changed in frontend
value: ${{ jobs.detect-changes.outputs.frontend }}

jobs:
detect-changes:
name: Detect changes
runs-on: ubuntu-${{ inputs.ubuntu_version }}
outputs:
backend: ${{steps.diff_check_backend.outputs.backend}}
frontend: ${{steps.diff_check_frontend.outputs.frontend}}
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.base_ref }}

- uses: actions/checkout@v4
with:
clean: false
- name: Generate summary
if: ${{inputs.backend_directories != ''}} | ${{inputs.frontend_directories != ''}}
run: |
echo "### Detect Changes summary" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY

- name: Generate diffs for backend
if: ${{inputs.backend_directories != ''}}
id: diff_check_backend
run: |
BACKEND_CHANGES=$(git diff --compact-summary origin/${{ github.base_ref }} -- ${{ inputs.backend_directories }} | head -n -1 | wc -l)
echo "backend=$BACKEND_CHANGES" >> $GITHUB_OUTPUT
echo "Backend Changes: $BACKEND_CHANGES" >> $GITHUB_STEP_SUMMARY
echo "backend $BACKEND_CHANGES"


- name: Generate diffs for frontend
if: ${{inputs.frontend_directories != ''}}
id: diff_check_frontend
run: |
FRONTEND_CHANGES=$(git diff --compact-summary origin/${{ github.base_ref }} -- ${{ inputs.frontend_directories }} | head -n -1 | wc -l)
echo "frontend=$FRONTEND_CHANGES" >> $GITHUB_OUTPUT
echo "Frontend Changes: $FRONTEND_CHANGES" >> $GITHUB_STEP_SUMMARY
echo "frontend $FRONTEND_CHANGES"

Loading

0 comments on commit a8d39bd

Please sign in to comment.