From 5f5a96f98485a4a15bfa380484b0877c0e54c460 Mon Sep 17 00:00:00 2001 From: "prithvikumar.detne@gmail.com" Date: Fri, 3 May 2024 20:05:00 +0000 Subject: [PATCH 1/8] Committing only for Topic repos --- .github/workflows/single-repo.yaml | 32 ++++++++++++++++++++++++++++++ .github/workflows/text.yaml | 1 - 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/single-repo.yaml delete mode 100644 .github/workflows/text.yaml diff --git a/.github/workflows/single-repo.yaml b/.github/workflows/single-repo.yaml new file mode 100644 index 0000000..b6001f3 --- /dev/null +++ b/.github/workflows/single-repo.yaml @@ -0,0 +1,32 @@ +name: Global workflow to rule them all + +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.GH_TOKEN }} + patterns_to_include: single-repo.yaml + committer_username: prithvikumar.detne@gmail.com + committer_email: prithvikumar.detne@gmail.com + commit_message: "Single Repo Commit" diff --git a/.github/workflows/text.yaml b/.github/workflows/text.yaml deleted file mode 100644 index 8b13789..0000000 --- a/.github/workflows/text.yaml +++ /dev/null @@ -1 +0,0 @@ - From c896c13f08b354b6004ecce6a484df00490eb532 Mon Sep 17 00:00:00 2001 From: "prithvikumar.detne@gmail.com" Date: Fri, 3 May 2024 20:07:15 +0000 Subject: [PATCH 2/8] Committing only for Topic repos --- .github/workflows/single-repo.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/single-repo.yaml b/.github/workflows/single-repo.yaml index b6001f3..595d28c 100644 --- a/.github/workflows/single-repo.yaml +++ b/.github/workflows/single-repo.yaml @@ -1,4 +1,4 @@ -name: Global workflow to rule them all +name: Global workflow to rule workflow on: push: @@ -25,7 +25,7 @@ jobs: - name: Replicating file uses: derberg/manage-files-in-multiple-repositories@v2 with: - github_token: ${{ secrets.GH_TOKEN }} + github_token: ${{ secrets.MANAGE_FILES_TOKEN }} patterns_to_include: single-repo.yaml committer_username: prithvikumar.detne@gmail.com committer_email: prithvikumar.detne@gmail.com From bb79c4600049d1ad20b91ac5e323c65cdf1c98f4 Mon Sep 17 00:00:00 2001 From: "prithvikumar.detne@gmail.com" Date: Fri, 3 May 2024 20:15:27 +0000 Subject: [PATCH 3/8] Committing only for Topic repos --- .github/workflows/single-repo.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/single-repo.yaml b/.github/workflows/single-repo.yaml index 595d28c..c606cd7 100644 --- a/.github/workflows/single-repo.yaml +++ b/.github/workflows/single-repo.yaml @@ -11,7 +11,7 @@ on: inputs: repo_name: description: | - gitpractice + Updating it to gitpractice repo required: false jobs: From cb9ad91d8fa92aeb18971111d217be48d9434306 Mon Sep 17 00:00:00 2001 From: "prithvikumar.detne@gmail.com" Date: Fri, 3 May 2024 20:22:14 +0000 Subject: [PATCH 4/8] Committing only for Topic repos --- .github/workflows/single-repo.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/single-repo.yaml b/.github/workflows/single-repo.yaml index c606cd7..e3979b1 100644 --- a/.github/workflows/single-repo.yaml +++ b/.github/workflows/single-repo.yaml @@ -11,8 +11,8 @@ on: inputs: repo_name: description: | - Updating it to gitpractice repo - required: false + Repo Name + required: true jobs: @@ -29,4 +29,4 @@ jobs: patterns_to_include: single-repo.yaml committer_username: prithvikumar.detne@gmail.com committer_email: prithvikumar.detne@gmail.com - commit_message: "Single Repo Commit" + commit_message: "Validating Required Parameter" From ce45784008b2767157892a61f9700c25f55d5502 Mon Sep 17 00:00:00 2001 From: "prithvikumar.detne@gmail.com" Date: Mon, 6 May 2024 15:23:24 +0000 Subject: [PATCH 5/8] Committing only for Topic repos --- .github/workflows/single-repo.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/single-repo.yaml b/.github/workflows/single-repo.yaml index e3979b1..24ce362 100644 --- a/.github/workflows/single-repo.yaml +++ b/.github/workflows/single-repo.yaml @@ -16,7 +16,7 @@ on: jobs: - replicate_coc: + replicate_single: name: Replicate Code of Conduct in all repositories runs-on: ubuntu-latest steps: From 113651459cb55e854d49b5732defb2d5ae58240d Mon Sep 17 00:00:00 2001 From: "prithvikumar.detne@gmail.com" Date: Mon, 6 May 2024 17:02:54 +0000 Subject: [PATCH 6/8] Committing only for Topic repos --- .github/workflows/single-repo.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/single-repo.yaml b/.github/workflows/single-repo.yaml index 24ce362..07a3f6b 100644 --- a/.github/workflows/single-repo.yaml +++ b/.github/workflows/single-repo.yaml @@ -29,4 +29,4 @@ jobs: patterns_to_include: single-repo.yaml committer_username: prithvikumar.detne@gmail.com committer_email: prithvikumar.detne@gmail.com - commit_message: "Validating Required Parameter" + commit_message: "Validating Auto Merge " From 16d911aaeccbda5e1276d238b95c1ec5b114d600 Mon Sep 17 00:00:00 2001 From: "prithvikumar.detne@gmail.com" Date: Mon, 6 May 2024 17:46:04 +0000 Subject: [PATCH 7/8] Validating Auto Merge --- .github/workflows/manage-files.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/manage-files.yaml b/.github/workflows/manage-files.yaml index f4db414..759602e 100644 --- a/.github/workflows/manage-files.yaml +++ b/.github/workflows/manage-files.yaml @@ -27,5 +27,5 @@ jobs: #destination: 'gitpractice' committer_username: prithvikumar.detne@gmail.com committer_email: prithvikumar.detne@gmail.com - commit_message: "Committing only for Topic repos" + commit_message: "Validating Auto Merge" bot_branch_name: true From 5dcbead1358c6315b3e89e8cb564f13506a0ae5d Mon Sep 17 00:00:00 2001 From: "prithvikumar.detne@gmail.com" Date: Mon, 6 May 2024 17:50:57 +0000 Subject: [PATCH 8/8] Validating Auto Merge --- .github/workflows/single-repo.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/single-repo.yaml b/.github/workflows/single-repo.yaml index 07a3f6b..eeca831 100644 --- a/.github/workflows/single-repo.yaml +++ b/.github/workflows/single-repo.yaml @@ -17,7 +17,7 @@ on: jobs: replicate_single: - name: Replicate Code of Conduct in all repositories + name: Replicating Single Repo runs-on: ubuntu-latest steps: - name: Checkout repository