From e985383014f8e898eaf282bb05b71bb82495986b Mon Sep 17 00:00:00 2001 From: Animesh Kumar Date: Sat, 24 Feb 2024 19:16:54 +0530 Subject: [PATCH 1/8] resolve conflicts, update outdated branch --- .github/workflows/global-replicator.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/global-replicator.yml b/.github/workflows/global-replicator.yml index 57cadda4..de9e27e6 100644 --- a/.github/workflows/global-replicator.yml +++ b/.github/workflows/global-replicator.yml @@ -197,4 +197,22 @@ jobs: committer_username: asyncapi-bot committer_email: info@asyncapi.io commit_message: "ci: update of files from global .github repo" - bot_branch_name: bot/update-files-from-global-repo/${{ github.job }} \ No newline at end of file + bot_branch_name: bot/update-files-from-global-repo/${{ github.job }} + + replicate_get_global_prettierignore: + if: startsWith(github.repository, 'asyncapi/') + name: Replicate prettierignore file in the requested repositories + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Replicating file + uses: derberg/manage-files-in-multiple-repositories@beecbe897cf5ed7f3de5a791a3f2d70102fe7c25 + with: + github_token: ${{ secrets.GH_TOKEN }} + patterns_to_include: .github/workflows/if-nodejs-release.yml,.github/workflows/if-nodejs-version-bump.yml,.github/workflows/bump.yml + topics_to_include: get-global-prettierignore + committer_username: asyncapi-bot + committer_email: info@asyncapi.io + commit_message: "ci: update of files from global .github repo" + bot_branch_name: bot/update-files-from-global-repo \ No newline at end of file From 688da9882710e909c9fd30798a5614fa0427f77c Mon Sep 17 00:00:00 2001 From: Animesh Kumar Date: Sat, 24 Feb 2024 19:22:07 +0530 Subject: [PATCH 2/8] chore: update checkout action to v4 --- .github/workflows/global-replicator.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/global-replicator.yml b/.github/workflows/global-replicator.yml index de9e27e6..5c22e86c 100644 --- a/.github/workflows/global-replicator.yml +++ b/.github/workflows/global-replicator.yml @@ -22,7 +22,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Replicating file uses: derberg/manage-files-in-multiple-repositories@beecbe897cf5ed7f3de5a791a3f2d70102fe7c25 with: @@ -40,7 +40,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Replicating file uses: derberg/manage-files-in-multiple-repositories@beecbe897cf5ed7f3de5a791a3f2d70102fe7c25 with: @@ -58,7 +58,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Replicating file uses: derberg/manage-files-in-multiple-repositories@beecbe897cf5ed7f3de5a791a3f2d70102fe7c25 with: @@ -76,7 +76,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Replicating file uses: derberg/manage-files-in-multiple-repositories@beecbe897cf5ed7f3de5a791a3f2d70102fe7c25 with: @@ -94,7 +94,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Replicating file uses: derberg/manage-files-in-multiple-repositories@beecbe897cf5ed7f3de5a791a3f2d70102fe7c25 with: @@ -114,7 +114,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Replicating file uses: derberg/manage-files-in-multiple-repositories@beecbe897cf5ed7f3de5a791a3f2d70102fe7c25 with: @@ -133,7 +133,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Replicating file uses: derberg/manage-files-in-multiple-repositories@beecbe897cf5ed7f3de5a791a3f2d70102fe7c25 with: @@ -151,7 +151,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Replicating file uses: derberg/manage-files-in-multiple-repositories@beecbe897cf5ed7f3de5a791a3f2d70102fe7c25 with: @@ -169,7 +169,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Replicating file uses: derberg/manage-files-in-multiple-repositories@beecbe897cf5ed7f3de5a791a3f2d70102fe7c25 with: From 541e2a92904c8f2f76cef07ad4c029a024f4a670 Mon Sep 17 00:00:00 2001 From: Animesh Kumar Date: Sat, 24 Feb 2024 19:35:35 +0530 Subject: [PATCH 3/8] update code --- .github/workflows/global-replicator.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/global-replicator.yml b/.github/workflows/global-replicator.yml index 5c22e86c..37123cf1 100644 --- a/.github/workflows/global-replicator.yml +++ b/.github/workflows/global-replicator.yml @@ -201,7 +201,7 @@ jobs: replicate_get_global_prettierignore: if: startsWith(github.repository, 'asyncapi/') - name: Replicate prettierignore file in the requested repositories + name: Replicate .prettierignore file in the required repositories runs-on: ubuntu-latest steps: - name: Checkout repository @@ -210,9 +210,9 @@ jobs: uses: derberg/manage-files-in-multiple-repositories@beecbe897cf5ed7f3de5a791a3f2d70102fe7c25 with: github_token: ${{ secrets.GH_TOKEN }} - patterns_to_include: .github/workflows/if-nodejs-release.yml,.github/workflows/if-nodejs-version-bump.yml,.github/workflows/bump.yml + patterns_to_include: .prettierignore topics_to_include: get-global-prettierignore committer_username: asyncapi-bot committer_email: info@asyncapi.io - commit_message: "ci: update of files from global .github repo" + commit_message: "ci: update .prettierignore from global .github repo" bot_branch_name: bot/update-files-from-global-repo \ No newline at end of file From e7abe2bb680aff2225f2d5a558c16994689cf8db Mon Sep 17 00:00:00 2001 From: Animesh Kumar Date: Sat, 24 Feb 2024 19:38:04 +0530 Subject: [PATCH 4/8] change job name --- .github/workflows/global-replicator.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/global-replicator.yml b/.github/workflows/global-replicator.yml index 37123cf1..5a3af0ab 100644 --- a/.github/workflows/global-replicator.yml +++ b/.github/workflows/global-replicator.yml @@ -199,7 +199,7 @@ jobs: commit_message: "ci: update of files from global .github repo" bot_branch_name: bot/update-files-from-global-repo/${{ github.job }} - replicate_get_global_prettierignore: + replicate_prettierignore_file: if: startsWith(github.repository, 'asyncapi/') name: Replicate .prettierignore file in the required repositories runs-on: ubuntu-latest From 242366b618bd85d896386838ffedf1c9a2dc39b5 Mon Sep 17 00:00:00 2001 From: Animesh Kumar Date: Sat, 24 Feb 2024 23:08:35 +0530 Subject: [PATCH 5/8] add `.prettierignore` file - Added .prettierignore file according to suggestion here: https://github.com/asyncapi/.github/pull/253#pullrequestreview-1899525564 --- .github/workflows/.prettierignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 .github/workflows/.prettierignore diff --git a/.github/workflows/.prettierignore b/.github/workflows/.prettierignore new file mode 100644 index 00000000..fa29cdff --- /dev/null +++ b/.github/workflows/.prettierignore @@ -0,0 +1 @@ +** \ No newline at end of file From f5ad2261df05dccc41bebcf7f56acf8930add873 Mon Sep 17 00:00:00 2001 From: Animesh Kumar Date: Mon, 11 Mar 2024 22:24:00 +0530 Subject: [PATCH 6/8] fix: update README.md with workflow --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ec45768d..31686fb0 100644 --- a/README.md +++ b/README.md @@ -13,5 +13,6 @@ Below is a list of workflows with their corresponding topics and descriptions. B | `golang` | [if-go-pr-testing](.github/workflows/if-go-pr-testing.yml) | Compiles and tests Go code using multiple versions of Go | `nodejs` | [if-nodejs-pr-testing](.github/workflows/if-nodejs-pr-testing.yml) | Builds and tests Node.js projects using multiple Node.js versions | `get-global-node-release-workflows` | [if-nodejs-release](.github/workflows/if-nodejs-release.yml), [if-nodejs-version-bump.yml](.github/workflows/if-nodejs-version-bump.yml) , [bump.yml](.github/workflows/bump.yml) | Fetches and publishes Node.js release information to the project's website -| `get-global-releaserc` | [.releaserc](.github/workflows/.releaserc) | Fetches release configuration files from a remote repository and makes them available to other workflows -| `get-global-docs-autoupdate` | [update-docs-on-docs-commits](.github/workflows/update-docs-on-docs-commits.yml) | Updates the documentation of a project using `generate:assets` command (if it exists) when the commit starts with `docs:` \ No newline at end of file +| `get-global-releaserc` | [.releaserc](.github/workflows/.releaserc) | Fetches release configuration files from a remote repository andUpdates the documentation of a project using `generate:assets` command (if it exists) when the commit starts with `docs makes them available to other workflows +| `get-global-docs-autoupdate` | [update-docs-on-docs-commits](.github/workflows/update-docs-on-docs-commits.yml) | Updates the documentation of a project using `generate:assets` command (if it exists) when the commit starts with `docs:` +| `get-global-prettierignore` | [replicate-prettierignore-file](.https://github.com/AnimeshKumar923/.github-asyncapi/blob/242366b618bd85d896386838ffedf1c9a2dc39b5/.github/workflows/global-replicator.yml#L202C3-L218C61) | Replicates `.prettierignore` file in the repository which has this topic. \ No newline at end of file From 5a0d1c348475fa3fc289c9958e5f74d255e035ec Mon Sep 17 00:00:00 2001 From: Animesh Kumar Date: Mon, 11 Mar 2024 22:25:19 +0530 Subject: [PATCH 7/8] minor README.md fix minor url fix --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 31686fb0..4e2dc7a7 100644 --- a/README.md +++ b/README.md @@ -15,4 +15,4 @@ Below is a list of workflows with their corresponding topics and descriptions. B | `get-global-node-release-workflows` | [if-nodejs-release](.github/workflows/if-nodejs-release.yml), [if-nodejs-version-bump.yml](.github/workflows/if-nodejs-version-bump.yml) , [bump.yml](.github/workflows/bump.yml) | Fetches and publishes Node.js release information to the project's website | `get-global-releaserc` | [.releaserc](.github/workflows/.releaserc) | Fetches release configuration files from a remote repository andUpdates the documentation of a project using `generate:assets` command (if it exists) when the commit starts with `docs makes them available to other workflows | `get-global-docs-autoupdate` | [update-docs-on-docs-commits](.github/workflows/update-docs-on-docs-commits.yml) | Updates the documentation of a project using `generate:assets` command (if it exists) when the commit starts with `docs:` -| `get-global-prettierignore` | [replicate-prettierignore-file](.https://github.com/AnimeshKumar923/.github-asyncapi/blob/242366b618bd85d896386838ffedf1c9a2dc39b5/.github/workflows/global-replicator.yml#L202C3-L218C61) | Replicates `.prettierignore` file in the repository which has this topic. \ No newline at end of file +| `get-global-prettierignore` | [replicate-prettierignore-file](https://github.com/AnimeshKumar923/.github-asyncapi/blob/242366b618bd85d896386838ffedf1c9a2dc39b5/.github/workflows/global-replicator.yml#L202C3-L218C61) | Replicates `.prettierignore` file in the repository which has this topic. From 072810c6a748169b0c651ea4f336841ad476dc95 Mon Sep 17 00:00:00 2001 From: Animesh Kumar Date: Mon, 11 Mar 2024 22:51:31 +0530 Subject: [PATCH 8/8] chore: update link in README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4e2dc7a7..31c926db 100644 --- a/README.md +++ b/README.md @@ -15,4 +15,4 @@ Below is a list of workflows with their corresponding topics and descriptions. B | `get-global-node-release-workflows` | [if-nodejs-release](.github/workflows/if-nodejs-release.yml), [if-nodejs-version-bump.yml](.github/workflows/if-nodejs-version-bump.yml) , [bump.yml](.github/workflows/bump.yml) | Fetches and publishes Node.js release information to the project's website | `get-global-releaserc` | [.releaserc](.github/workflows/.releaserc) | Fetches release configuration files from a remote repository andUpdates the documentation of a project using `generate:assets` command (if it exists) when the commit starts with `docs makes them available to other workflows | `get-global-docs-autoupdate` | [update-docs-on-docs-commits](.github/workflows/update-docs-on-docs-commits.yml) | Updates the documentation of a project using `generate:assets` command (if it exists) when the commit starts with `docs:` -| `get-global-prettierignore` | [replicate-prettierignore-file](https://github.com/AnimeshKumar923/.github-asyncapi/blob/242366b618bd85d896386838ffedf1c9a2dc39b5/.github/workflows/global-replicator.yml#L202C3-L218C61) | Replicates `.prettierignore` file in the repository which has this topic. +| `get-global-prettierignore` | [replicate-prettierignore-file](./.github/workflows/global-replicator.yml#L202C3-L218C61) | Replicates `.prettierignore` file in the repository which has this topic. \ No newline at end of file