Global workflow to rule workflow #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Global workflow to rule workflow | |
on: | |
push: | |
branches: [ master ] | |
paths: | |
- '.github/workflows/**' | |
- 'single-repo.yaml' | |
#- 'CONTRIBUTING.md' | |
workflow_dispatch: | |
inputs: | |
repo_name: | |
description: | | |
Repo name | |
required: true | |
jobs: | |
replicate_coc: | |
name: Replicate Code of Conduct in all repositories | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Replicating file | |
uses: derberg/manage-files-in-multiple-repositories@v2 | |
with: | |
github_token: ${{ secrets.MANAGE_FILES_TOKEN }} | |
patterns_to_include: single-repo.yaml | |
committer_username: [email protected] | |
committer_email: [email protected] | |
commit_message: "Validating required parameter" |