Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix/submodule #27

Merged
merged 18 commits into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/commit-message-check-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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+)?(.+)?$'
4 changes: 2 additions & 2 deletions .github/workflows/github-call-set-topic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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'
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/github-call-update-submodule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches:
- main
schedule:
- cron: "0 0 * * *"
rkflow_dispatch:
jobs:
call-github-update-submodule:
runs-on: ubuntu-latest
Expand All @@ -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 }}
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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
# -----------------------------
Expand Down
Loading