Skip to content

Commit

Permalink
chore/add-git-modules add git modules folder
Browse files Browse the repository at this point in the history
  • Loading branch information
hminaee-tc committed Aug 23, 2024
1 parent 9f2e425 commit 70f18ea
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/call-github-update-submodule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,24 @@ jobs:
application_private_key: ${{ secrets.GH_APP_REPO_ACTION_RW_PRIVATE_KEY }}
revoke_token: true

# - name: Read patterns from file
# id: read_patterns
# run: |
# patterns=$(grep -v '^$' .github/META-REPO-PATTERNS | tr '\n' ',' | sed 's/,$//')
# echo "patterns=$patterns" >> $GITHUB_ENV

- name: Read patterns from file
id: read_patterns
uses: your-username/read-and-stringify-json-action@v1
with:
file: '.github/META-REPO-PATTERNS'
file_type: 'file'
separator: '\n'
output_format: ','

- name: Log patterns
run: |
patterns=$(grep -v '^$' .github/META-REPO-PATTERNS | tr '\n' ',' | sed 's/,$//')
echo "patterns=$patterns" >> $GITHUB_ENV
echo "Patterns: ${{ steps.read_patterns.outputs.properties }}"
- name: Trigger reusable workflow via API
uses: opencepk/opencepk-module-ghactions-common/trigger-workflow-action@fix/update-gitmodules-action
Expand All @@ -34,7 +47,7 @@ jobs:
repo: 'opencepk/opencepk-projects-hub'
workflow_id: 'github-update-gitmodules.yml'
ref: 'main'
inputs: '{"repo":"${{ github.repository }}", "patterns":"${{ env.patterns }}"}'
inputs: '{"repo":"${{ github.repository }}", "patterns":"${{ steps.read_patterns.outputs.properties }}"}'

# - name: Trigger reusable workflow via API

Check warning on line 52 in .github/workflows/call-github-update-submodule.yml

View workflow job for this annotation

GitHub Actions / pre-commit

52:7 [comments-indentation] comment not indented like content

Check warning on line 52 in .github/workflows/call-github-update-submodule.yml

View workflow job for this annotation

GitHub Actions / pre-commit

52:7 [comments-indentation] comment not indented like content
# run: |
Expand Down

0 comments on commit 70f18ea

Please sign in to comment.