File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # depandabot to update your package.json or requirements.txt - remove useless sections
2+ # check all configuration options :
3+ # https://docs.github.com/fr/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
4+ # also works with private repository
5+ # https://docs.github.com/fr/code-security/dependabot/working-with-dependabot/configuring-access-to-private-registries-for-dependabot
6+ version : 2
7+ updates :
8+ - package-ecosystem : " pip"
9+ directory : " /resources"
10+ target-branch : " beta"
11+ schedule :
12+ interval : weekly
13+
14+ - package-ecosystem : " composer"
15+ # Files stored in repository root
16+ directory : " /"
17+ schedule :
18+ interval : " weekly"
19+ target-branch : " beta"
20+
21+ # Maintain any github-actions workflow
22+ # https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot
23+ - package-ecosystem : " github-actions"
24+ directory : " /"
25+ schedule :
26+ interval : " monthly"
27+ target-branch : " beta"
Original file line number Diff line number Diff line change 1+ name : Docs
2+
3+ on :
4+ push :
5+ branches :
6+ - beta
7+ - master
8+ paths :
9+ - docs/**
10+ workflow_dispatch :
11+
12+ permissions :
13+ contents : write
14+ pull-requests : write
15+
16+ jobs :
17+ changes :
18+ runs-on : ubuntu-latest
19+ outputs :
20+ fr_fr : ${{ steps.filter.outputs.fr_fr }}
21+ translated : ${{ steps.filter.outputs.translated }}
22+ images : ${{ steps.filter.outputs.images }}
23+ manual : ${{ github.event_name == 'workflow_dispatch' }}
24+ steps :
25+ - uses : actions/checkout@v7
26+ - uses : dorny/paths-filter@v4
27+ id : filter
28+ with :
29+ base : ${{ github.ref_name }}
30+ filters : |
31+ fr_fr:
32+ - 'docs/fr_FR/**'
33+ translated:
34+ - 'docs/en_US/**'
35+ - 'docs/es_ES/**'
36+ - 'docs/de_DE/**'
37+ images:
38+ - 'docs/images/**'
39+
40+ translate :
41+ needs : changes
42+ if : needs.changes.outputs.fr_fr == 'true' || needs.changes.outputs.manual == 'true'
43+ runs-on : ubuntu-latest
44+ steps :
45+ - uses : jeedom/jeetranslate-docs@main
46+ with :
47+ deepl_api_key : ${{ secrets.DEEPL_API_KEY }}
48+
49+ publish :
50+ needs : changes
51+ if : needs.changes.outputs.translated == 'true' || needs.changes.outputs.images == 'true' || needs.changes.outputs.manual == 'true'
52+ uses : jeedom/workflows/.github/workflows/docs-publish.yml@main
53+ secrets :
54+ docs_repo_token : ${{ secrets.DOCS_REPO_TOKEN }}
You can’t perform that action at this time.
0 commit comments