From 486ca451159432a80827a4b98c91162bf0a0f16c Mon Sep 17 00:00:00 2001 From: "prithvikumar.detne@gmail.com" Date: Fri, 3 May 2024 20:10:19 +0000 Subject: [PATCH] Single Repo Commit --- .github/workflows/single-repo.yaml | 32 ++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/single-repo.yaml diff --git a/.github/workflows/single-repo.yaml b/.github/workflows/single-repo.yaml new file mode 100644 index 0000000..595d28c --- /dev/null +++ b/.github/workflows/single-repo.yaml @@ -0,0 +1,32 @@ +name: Global workflow to rule workflow + +on: + push: + branches: [ master ] + paths: + - '.github/workflows/**' + - 'single-repo.yaml' + #- 'CONTRIBUTING.md' + workflow_dispatch: + inputs: + repo_name: + description: | + gitpractice + required: false + +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: prithvikumar.detne@gmail.com + committer_email: prithvikumar.detne@gmail.com + commit_message: "Single Repo Commit"