From 6dbc475a115deb429cc1136a012655af94084ea4 Mon Sep 17 00:00:00 2001 From: gui machiavelli Date: Mon, 20 Jan 2025 18:03:08 +0100 Subject: [PATCH 01/10] use GITHUB_TOKEN instead of GH_TOKEN --- .github/workflows/code-sample-automation.yml | 2 +- .github/workflows/preview-info.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/code-sample-automation.yml b/.github/workflows/code-sample-automation.yml index 30888beed..2467cdf3b 100644 --- a/.github/workflows/code-sample-automation.yml +++ b/.github/workflows/code-sample-automation.yml @@ -13,4 +13,4 @@ jobs: - uses: actions/add-to-project@f5473ace9aeee8b97717b281e26980aa5097023f with: project-url: https://github.com/orgs/meilisearch/projects/44 - github-token: ${{ secrets.GH_TOKEN }} + github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/preview-info.yml b/.github/workflows/preview-info.yml index e43d53fdc..64d811ca3 100644 --- a/.github/workflows/preview-info.yml +++ b/.github/workflows/preview-info.yml @@ -5,7 +5,7 @@ on: types: [opened] env: - GH_TOKEN: ${{ secrets.GH_TOKEN }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} CURRENT_BRANCH: ${{ github.event.pull_request.head.ref }} jobs: From b6212512802d0f464127e13bbcb037437290e124 Mon Sep 17 00:00:00 2001 From: gui machiavelli Date: Mon, 20 Jan 2025 18:05:54 +0100 Subject: [PATCH 02/10] test if code sample action works --- .code-samples.meilisearch.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.code-samples.meilisearch.yaml b/.code-samples.meilisearch.yaml index 3f85fcf6e..7961c8cd7 100644 --- a/.code-samples.meilisearch.yaml +++ b/.code-samples.meilisearch.yaml @@ -1443,4 +1443,4 @@ experimental_post_logs_stream_1: |- }' experimental_delete_logs_stream_1: |- curl \ - -X DELETE MEILISEARCH_URL/logs/stream + -X DELETE MEILISEARCH_URL/logs/streamTEST From b261bb50222ec586221b3c85db489c4f5aefc646 Mon Sep 17 00:00:00 2001 From: gui machiavelli Date: Mon, 20 Jan 2025 18:17:42 +0100 Subject: [PATCH 03/10] use `pull_request_target` for code samples project --- .github/workflows/code-sample-automation.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/code-sample-automation.yml b/.github/workflows/code-sample-automation.yml index 2467cdf3b..62e4a9b4f 100644 --- a/.github/workflows/code-sample-automation.yml +++ b/.github/workflows/code-sample-automation.yml @@ -1,7 +1,7 @@ name: Add PR to Code Samples Changes project on: - pull_request: + pull_request_target: types: [opened, edited, synchronize] paths: - .code-samples.meilisearch.yaml @@ -13,4 +13,4 @@ jobs: - uses: actions/add-to-project@f5473ace9aeee8b97717b281e26980aa5097023f with: project-url: https://github.com/orgs/meilisearch/projects/44 - github-token: ${{ secrets.GITHUB_TOKEN }} + github-token: ${{ secrets.GH_TOKEN }} From dea05f31e7ac30570466b195fb859060ebfcc93f Mon Sep 17 00:00:00 2001 From: gui machiavelli Date: Mon, 20 Jan 2025 18:19:34 +0100 Subject: [PATCH 04/10] test action --- .code-samples.meilisearch.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.code-samples.meilisearch.yaml b/.code-samples.meilisearch.yaml index 7961c8cd7..31743c78e 100644 --- a/.code-samples.meilisearch.yaml +++ b/.code-samples.meilisearch.yaml @@ -1443,4 +1443,4 @@ experimental_post_logs_stream_1: |- }' experimental_delete_logs_stream_1: |- curl \ - -X DELETE MEILISEARCH_URL/logs/streamTEST + -X DELETE MEILISEARCH_URL/logs/streamTES From 6e0f8a5aa81328415158a6593a0801e0c60ea60c Mon Sep 17 00:00:00 2001 From: gui machiavelli Date: Mon, 20 Jan 2025 18:21:24 +0100 Subject: [PATCH 05/10] test --- .code-samples.meilisearch.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.code-samples.meilisearch.yaml b/.code-samples.meilisearch.yaml index 31743c78e..3f85fcf6e 100644 --- a/.code-samples.meilisearch.yaml +++ b/.code-samples.meilisearch.yaml @@ -1443,4 +1443,4 @@ experimental_post_logs_stream_1: |- }' experimental_delete_logs_stream_1: |- curl \ - -X DELETE MEILISEARCH_URL/logs/streamTES + -X DELETE MEILISEARCH_URL/logs/stream From e42821705acbb04aa507a2f18113f913c0f1982b Mon Sep 17 00:00:00 2001 From: gui machiavelli Date: Mon, 20 Jan 2025 18:21:57 +0100 Subject: [PATCH 06/10] test --- .code-samples.meilisearch.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.code-samples.meilisearch.yaml b/.code-samples.meilisearch.yaml index 3f85fcf6e..7961c8cd7 100644 --- a/.code-samples.meilisearch.yaml +++ b/.code-samples.meilisearch.yaml @@ -1443,4 +1443,4 @@ experimental_post_logs_stream_1: |- }' experimental_delete_logs_stream_1: |- curl \ - -X DELETE MEILISEARCH_URL/logs/stream + -X DELETE MEILISEARCH_URL/logs/streamTEST From 20927475590e96ad6ec5a502c8f8d5665d26c05a Mon Sep 17 00:00:00 2001 From: gui machiavelli Date: Mon, 20 Jan 2025 18:25:41 +0100 Subject: [PATCH 07/10] test --- .github/workflows/code-sample-automation.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/code-sample-automation.yml b/.github/workflows/code-sample-automation.yml index 62e4a9b4f..e30b7b4fc 100644 --- a/.github/workflows/code-sample-automation.yml +++ b/.github/workflows/code-sample-automation.yml @@ -13,4 +13,4 @@ jobs: - uses: actions/add-to-project@f5473ace9aeee8b97717b281e26980aa5097023f with: project-url: https://github.com/orgs/meilisearch/projects/44 - github-token: ${{ secrets.GH_TOKEN }} + github-token: ${{ secrets.GITHUB_TOKEN }} From 1259432d56f90897ae4a78c9430a7fadbe76089c Mon Sep 17 00:00:00 2001 From: gui machiavelli Date: Mon, 20 Jan 2025 18:26:42 +0100 Subject: [PATCH 08/10] test --- .github/workflows/code-sample-automation.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/code-sample-automation.yml b/.github/workflows/code-sample-automation.yml index e30b7b4fc..2467cdf3b 100644 --- a/.github/workflows/code-sample-automation.yml +++ b/.github/workflows/code-sample-automation.yml @@ -1,7 +1,7 @@ name: Add PR to Code Samples Changes project on: - pull_request_target: + pull_request: types: [opened, edited, synchronize] paths: - .code-samples.meilisearch.yaml From b47bbab7938496f4a99325373a6865a2b0c31c39 Mon Sep 17 00:00:00 2001 From: gui machiavelli Date: Mon, 20 Jan 2025 18:32:40 +0100 Subject: [PATCH 09/10] test --- .github/workflows/code-sample-automation.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/code-sample-automation.yml b/.github/workflows/code-sample-automation.yml index 2467cdf3b..f58c8432d 100644 --- a/.github/workflows/code-sample-automation.yml +++ b/.github/workflows/code-sample-automation.yml @@ -1,10 +1,10 @@ name: Add PR to Code Samples Changes project on: - pull_request: + pull_request_target: types: [opened, edited, synchronize] paths: - - .code-samples.meilisearch.yaml + - '.code-samples.meilisearch.yaml' jobs: add-pr-to-project: From 36fd029f91cf7351b2c33acb0d8283d27b5d3047 Mon Sep 17 00:00:00 2001 From: gui machiavelli Date: Mon, 20 Jan 2025 19:06:35 +0100 Subject: [PATCH 10/10] undo edits to code samples --- .code-samples.meilisearch.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.code-samples.meilisearch.yaml b/.code-samples.meilisearch.yaml index 7961c8cd7..3f85fcf6e 100644 --- a/.code-samples.meilisearch.yaml +++ b/.code-samples.meilisearch.yaml @@ -1443,4 +1443,4 @@ experimental_post_logs_stream_1: |- }' experimental_delete_logs_stream_1: |- curl \ - -X DELETE MEILISEARCH_URL/logs/streamTEST + -X DELETE MEILISEARCH_URL/logs/stream