Skip to content

Commit

Permalink
chore/add-git-modules cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
hminaee-tc committed Aug 23, 2024
1 parent 05fb45f commit a337024
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 24 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/call-github-update-submodule.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# File: .github/workflows/call-github-update-submodule.yml
name: call-github-update-submodule

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

View workflow job for this annotation

GitHub Actions / pre-commit

2:1 [document-start] missing document start "---"

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

View workflow job for this annotation

GitHub Actions / pre-commit

2:1 [document-start] missing document start "---"

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

View workflow job for this annotation

GitHub Actions / pre-commit

2:1 [document-start] missing document start "---"

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

View workflow job for this annotation

GitHub Actions / pre-commit

2:1 [document-start] missing document start "---"

on:
push:
branches:
- main

jobs:
call-github-update-submodule:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Get Token
id: get_workflow_token
uses: peter-murray/workflow-application-token-action@v3
with:
application_id: ${{ secrets.GH_APP_REPO_ACTION_RW_APPLICATION_ID }}
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: Trigger reusable workflow via API
run: |
curl -X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${{ steps.get_workflow_token.outputs.token }}" \
-d '{"ref":"main", "inputs":{"repo":"${{ github.repository }}", "patterns":"${{ env.patterns }}"}}' \
https://api.github.com/repos/opencepk/opencepk-projects-hub/actions/workflows/github-update-gitmodules.yml/dispatches
24 changes: 0 additions & 24 deletions .github/workflows/github-update-gitmodules.yml

This file was deleted.

0 comments on commit a337024

Please sign in to comment.