Skip to content

Commit 6058f5b

Browse files
author
François Chastanet
committed
Update github worflows cron scheduling + use bash-compiler DEFAULT_TEMPLATE_FOLDER
1 parent 17f4e6c commit 6058f5b

File tree

6 files changed

+44
-22
lines changed

6 files changed

+44
-22
lines changed

.bash-compiler

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
FRAMEWORK_ROOT_DIR=${ROOT_DIR}
2-
TEMPLATES_ROOT_DIR=${HOME}/fchastanet/bash-compiler/examples/templates
2+
TEMPLATES_ROOT_DIR=${DEFAULT_TEMPLATE_FOLDER}

.github/dependabot.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ updates:
55
- package-ecosystem: "github-actions"
66
directory: "/"
77
schedule:
8-
# Check for updates to GitHub Actions every week
9-
interval: "weekly"
8+
# Check for updates to GitHub Actions every month
9+
interval: "monthly"
1010
day: "friday"
11+
time: "22:00"
12+
timezone: "Europe/Paris"
1113
open-pull-requests-limit: 1

.github/workflows/lint-test.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
build-bash-docker-images:
4242
runs-on: ubuntu-22.04
4343
permissions:
44-
# needed by akatov/commit-status-updater@a9e988ec5454692ff7745a509452422a35172ad6
44+
# needed by ouzi-dev/commit-status-updater@v2
4545
statuses: write
4646
strategy:
4747
fail-fast: true
@@ -67,7 +67,7 @@ jobs:
6767
password: ${{ secrets.DOCKERHUB_TOKEN }}
6868

6969
# overall process
70-
- uses: akatov/commit-status-updater@a9e988ec5454692ff7745a509452422a35172ad6
70+
- uses: ouzi-dev/commit-status-updater@v2
7171
with:
7272
name: build-bash-tools
7373
status: pending
@@ -87,7 +87,7 @@ jobs:
8787
echo "bashImage=amd64/bash:${{ matrix.bashTarVersion }}-alpine3.19"
8888
fi
8989
) >> "${GITHUB_ENV}"
90-
- uses: akatov/commit-status-updater@a9e988ec5454692ff7745a509452422a35172ad6
90+
- uses: ouzi-dev/commit-status-updater@v2
9191
with:
9292
name: build-${{ env.image_tag }}
9393
status: pending
@@ -141,7 +141,7 @@ jobs:
141141
labels: ${{ steps.meta.outputs.labels }}
142142
cache-to: type=gha,mode=max,scope=${{ env.image_tag }}
143143

144-
- uses: akatov/commit-status-updater@a9e988ec5454692ff7745a509452422a35172ad6
144+
- uses: ouzi-dev/commit-status-updater@v2
145145
with:
146146
name: build-${{ env.image_tag }}
147147
status: ${{ job.status }}
@@ -154,7 +154,7 @@ jobs:
154154
runs-on: ubuntu-22.04
155155
needs: [build-bash-docker-images]
156156
permissions:
157-
# needed by akatov/commit-status-updater@a9e988ec5454692ff7745a509452422a35172ad6
157+
# needed by ouzi-dev/commit-status-updater@v2
158158
statuses: write
159159
steps:
160160
- name: Checkout
@@ -184,7 +184,7 @@ jobs:
184184
app_id: ${{ secrets.APP_ID }}
185185
private_key: ${{ secrets.APP_PRIVATE_KEY }}
186186

187-
- uses: akatov/commit-status-updater@a9e988ec5454692ff7745a509452422a35172ad6
187+
- uses: ouzi-dev/commit-status-updater@v2
188188
with:
189189
name: pre-commit-megalinter
190190
status: pending
@@ -291,7 +291,7 @@ jobs:
291291
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
292292
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
293293
294-
- uses: akatov/commit-status-updater@a9e988ec5454692ff7745a509452422a35172ad6
294+
- uses: ouzi-dev/commit-status-updater@v2
295295
if: ${{ always() }}
296296
with:
297297
name: pre-commit-megalinter
@@ -305,7 +305,7 @@ jobs:
305305
runs-on: ubuntu-22.04
306306
needs: [build-bash-docker-images]
307307
permissions:
308-
# needed by akatov/commit-status-updater@a9e988ec5454692ff7745a509452422a35172ad6
308+
# needed by ouzi-dev/commit-status-updater@v2
309309
statuses: write
310310
# needed by mikepenz/action-junit-report@v4
311311
checks: write
@@ -347,7 +347,7 @@ jobs:
347347
app_id: ${{ secrets.APP_ID }}
348348
private_key: ${{ secrets.APP_PRIVATE_KEY }}
349349

350-
- uses: akatov/commit-status-updater@a9e988ec5454692ff7745a509452422a35172ad6
350+
- uses: ouzi-dev/commit-status-updater@v2
351351
with:
352352
name: unit-tests-${{matrix.vendor}}-${{matrix.bashTarVersion}}
353353
status: pending
@@ -419,7 +419,7 @@ jobs:
419419
path: |
420420
logs/**
421421
422-
- uses: akatov/commit-status-updater@a9e988ec5454692ff7745a509452422a35172ad6
422+
- uses: ouzi-dev/commit-status-updater@v2
423423
with:
424424
name: unit-tests-${{matrix.vendor}}-${{matrix.bashTarVersion}}
425425
status: ${{ job.status }}
@@ -430,15 +430,15 @@ jobs:
430430
needs: [unit-tests]
431431
runs-on: ubuntu-22.04
432432
permissions:
433-
# needed by akatov/commit-status-updater@a9e988ec5454692ff7745a509452422a35172ad6
433+
# needed by ouzi-dev/commit-status-updater@v2
434434
statuses: write
435435

436436
steps:
437437
# run this action to get the workflow conclusion
438438
# You can get the conclusion via env (env.WORKFLOW_CONCLUSION)
439439
- uses: AbsoLouie/[email protected]
440440

441-
- uses: akatov/commit-status-updater@a9e988ec5454692ff7745a509452422a35172ad6
441+
- uses: ouzi-dev/commit-status-updater@v2
442442
with:
443443
name: build-bash-tools
444444
# neutral, success, skipped, cancelled, timed_out, action_required, failure

.github/workflows/precommit-autoupdate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on: # yamllint disable-line rule:truthy
55
workflow_dispatch:
66
schedule:
77
# https://crontab.cronhub.io/
8-
- cron: "30 10 * * *"
8+
- cron: "30 22 1-7 */3 FRI"
99
jobs:
1010
auto-update:
1111
runs-on: ubuntu-22.04

.pre-commit-config-github.yaml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@ default_stages: [pre-commit, manual]
99
minimum_pre_commit_version: 3.5.0
1010
fail_fast: false
1111
repos:
12+
# enables pre-commit to install the hooks using pipx
13+
- repo: https://github.com/pypa/pipx
14+
rev: 1.7.1
15+
hooks:
16+
- id: pipx
17+
alias: yapf
18+
name: yapf
19+
args: ["yapf", "-i"]
20+
types: ["python"]
21+
1222
- repo: local
1323
# this hook is not intended to be run on github
1424
# it just allows to generate the same pre-commit
@@ -25,7 +35,7 @@ repos:
2535

2636
- repo: https://github.com/executablebooks/mdformat
2737
# Do this before other tools "fixing" the line endings
28-
rev: 0.7.19
38+
rev: 0.7.21
2939
hooks:
3040
- id: mdformat
3141
name: Format Markdown
@@ -150,7 +160,7 @@ repos:
150160
)
151161
152162
- repo: https://github.com/fchastanet/bash-tools-framework
153-
rev: 6.0.0
163+
rev: 6.1.1
154164
hooks:
155165
- id: fixShebangExecutionBit
156166
- id: awkLint
@@ -195,6 +205,6 @@ repos:
195205
stages: [manual] # GITHUB
196206

197207
- repo: https://github.com/fchastanet/bash-compiler
198-
rev: v3.1.0
208+
rev: 3.1.2
199209
hooks:
200210
- id: buildBashBinaries

.pre-commit-config.yaml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ default_stages: [pre-commit, manual]
44
minimum_pre_commit_version: 3.5.0
55
fail_fast: true
66
repos:
7+
# enables pre-commit to install the hooks using pipx
8+
- repo: https://github.com/pypa/pipx
9+
rev: 1.7.1
10+
hooks:
11+
- id: pipx
12+
alias: yapf
13+
name: yapf
14+
args: ["yapf", "-i"]
15+
types: ["python"]
16+
717
- repo: local
818
# this hook is not intended to be run on github
919
# it just allows to generate the same pre-commit
@@ -20,7 +30,7 @@ repos:
2030

2131
- repo: https://github.com/executablebooks/mdformat
2232
# Do this before other tools "fixing" the line endings
23-
rev: 0.7.19
33+
rev: 0.7.21
2434
hooks:
2535
- id: mdformat
2636
name: Format Markdown
@@ -145,7 +155,7 @@ repos:
145155
)
146156
147157
- repo: https://github.com/fchastanet/bash-tools-framework
148-
rev: 6.0.0
158+
rev: 6.1.1
149159
hooks:
150160
- id: fixShebangExecutionBit
151161
- id: awkLint
@@ -190,6 +200,6 @@ repos:
190200
stages: [] # GITHUB
191201

192202
- repo: https://github.com/fchastanet/bash-compiler
193-
rev: v3.1.0
203+
rev: 3.1.2
194204
hooks:
195205
- id: buildBashBinaries

0 commit comments

Comments
 (0)