Skip to content
Open
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
13 changes: 13 additions & 0 deletions .github/workflows/dispatch-workflow-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,19 @@ jobs:
repository: ${{ github.repository_owner }}/${{ github.event.inputs.repository }}
ref: ${{ github.event.inputs.branch }}

- name: Check sync-workflow-templates.yml file existence
id: check_sync_workflow_templates_existence
uses: andstor/file-existence-action@076e0072799f4942c8bc574a82233e1e4d13e9d6 # v3.0.0
with:
files: target/.github/workflows/sync-workflow-templates.yml

- name: Fail when synced # zizmor: ignore[template-injection]
if: ${{ steps.check_sync_workflow_templates_existence.outputs.files_exists == 'true' }}
run: |
echo 'Repository is syncing workflows. Please dispatch the workflow on the repository instead:'
echo 'https://github.com/${{ github.repository_owner }}/${{ matrix.repositories }}/actions/workflows/sync-workflow-templates.yml'
exit 1

- name: Checkout source repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/dispatch-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,19 @@ jobs:
path: target
repository: ${{ github.repository_owner }}/${{ matrix.repositories }}

- name: Check sync-workflow-templates.yml file existence
id: check_sync_workflow_templates_existence
uses: andstor/file-existence-action@076e0072799f4942c8bc574a82233e1e4d13e9d6 # v3.0.0
with:
files: target/.github/workflows/sync-workflow-templates.yml

- name: Fail when synced # zizmor: ignore[template-injection]
if: ${{ steps.check_sync_workflow_templates_existence.outputs.files_exists == 'true' }}
run: |
echo 'Repository is syncing workflows. Please dispatch the workflow on the repository instead:'
echo 'https://github.com/${{ github.repository_owner }}/${{ matrix.repositories }}/actions/workflows/sync-workflow-templates.yml'
exit 1

- name: Check ${{ github.event.inputs.name }} file existence
id: check_file_existence
uses: andstor/file-existence-action@076e0072799f4942c8bc574a82233e1e4d13e9d6 # v3.0.0
Expand Down
Loading