diff --git a/.github/workflows/commit-message-check-action.yml b/.github/workflows/commit-message-check-action.yml index db37000..a28ca5a 100644 --- a/.github/workflows/commit-message-check-action.yml +++ b/.github/workflows/commit-message-check-action.yml @@ -21,6 +21,6 @@ jobs: ssh-private-key: ${{ secrets.SSH_KEY_ICE_MODULES_READONLY }} - name: Check Commit Messages # uses: ./commit-message-check-action - uses: opencepk/opencepk-module-ghactions-common/github-flow-check-commit-message@fix/harde-codeded-repo + uses: opencepk/opencepk-module-ghactions-common/github-flow-check-commit-message@main with: commit-pattern: '^(feat|fix|build|breaking|chore|ci|docs|perf|refactor|revert|test)\/([\w-]+)*(:\s+)?(.+)?$' diff --git a/.github/workflows/github-call-set-topic.yml b/.github/workflows/github-call-set-topic.yml index e03c7ca..0a3db1b 100644 --- a/.github/workflows/github-call-set-topic.yml +++ b/.github/workflows/github-call-set-topic.yml @@ -22,7 +22,7 @@ jobs: - name: Read and Stringify JSON Data id: read-and-stringify-json - uses: opencepk/opencepk-module-ghactions-common/read-and-stringify-json-action@fix/update-gitmodules-action + uses: opencepk/opencepk-module-ghactions-common/read-and-stringify-json-action@main with: file: '.project-properties.json' file_type: 'json' @@ -32,7 +32,7 @@ jobs: echo "JSON Data which will be sent: ${{ steps.read-and-stringify-json.outputs.output }}" - name: Trigger reusable workflow via API - uses: opencepk/opencepk-module-ghactions-common/trigger-workflow-action@fix/update-gitmodules-action + uses: opencepk/opencepk-module-ghactions-common/trigger-workflow-action@main with: token: ${{ steps.get_workflow_token.outputs.token }} repo: 'opencepk/opencepk-projects-hub' diff --git a/.github/workflows/github-call-update-submodule.yml b/.github/workflows/github-call-update-submodule.yml index 0e2624b..145b6aa 100644 --- a/.github/workflows/github-call-update-submodule.yml +++ b/.github/workflows/github-call-update-submodule.yml @@ -4,6 +4,9 @@ on: push: branches: - main + schedule: + - cron: "0 0 * * *" + rkflow_dispatch: jobs: call-github-update-submodule: runs-on: ubuntu-latest @@ -28,7 +31,24 @@ jobs: separator: '/\r?\n/' output_format: ',' + - name: Print input values + run: | + echo "repo: ${{ github.repository }}" + echo "patterns: ${{ steps.read_patterns.outputs.output }}" + + - name: Check if patterns is not empty + id: check_patterns + run: | + if [ -z "${{ steps.read_patterns.outputs.output }}" ]; then + echo "patterns is empty" + echo "should_trigger=false" >> "$GITHUB_OUTPUT" + else + echo "should_trigger=true" >> "$GITHUB_OUTPUT" + fi + continue-on-error: true + - name: Trigger reusable workflow via API + if: steps.check_patterns.outputs.should_trigger == 'true' uses: opencepk/opencepk-module-ghactions-common/trigger-workflow-action@main with: token: ${{ steps.get_workflow_token.outputs.token }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b6d84f8..77bb57c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -53,7 +53,7 @@ repos: - id: mixed-line-ending args: [--fix=lf] - repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook - rev: v9.16.0 + rev: v9.18.0 hooks: - id: commitlint stages: [commit-msg] @@ -66,7 +66,7 @@ repos: # some_non_secret_value = a1b2c3d4e5f6g7h8i9j0 # gitleaks:allow # ----------------------------- - repo: https://github.com/gitleaks/gitleaks - rev: v8.18.4 + rev: v8.19.2 hooks: - id: gitleaks # -----------------------------