From 2eca723a915b2ca2714aff5b73b8eec29a6a0b38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9mentine=20Urquizar?= Date: Fri, 2 Sep 2022 16:45:32 +0200 Subject: [PATCH 1/2] Update checkout v2 to v3 in CI manifests --- .github/workflows/publish-binaries.yml | 2 +- .github/workflows/publish-deb-brew-pkg.yml | 2 +- .github/workflows/publish-docker-images.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-binaries.yml b/.github/workflows/publish-binaries.yml index 65d4746ba..9eecaf908 100644 --- a/.github/workflows/publish-binaries.yml +++ b/.github/workflows/publish-binaries.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest # No need to check the version for dry run (cron) steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 # Check if the tag has the v.. format. # If yes, it means we are publishing an official release. # If no, we are releasing a RC, so no need to check the version. diff --git a/.github/workflows/publish-deb-brew-pkg.yml b/.github/workflows/publish-deb-brew-pkg.yml index b5fc330bf..1dc56f940 100644 --- a/.github/workflows/publish-deb-brew-pkg.yml +++ b/.github/workflows/publish-deb-brew-pkg.yml @@ -9,7 +9,7 @@ jobs: name: Check the version validity runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Check release validity run: bash .github/scripts/check-release.sh diff --git a/.github/workflows/publish-docker-images.yml b/.github/workflows/publish-docker-images.yml index 72234fc01..88605bee1 100644 --- a/.github/workflows/publish-docker-images.yml +++ b/.github/workflows/publish-docker-images.yml @@ -12,7 +12,7 @@ jobs: docker: runs-on: docker steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 # Check if the tag has the v.. format. If yes, it means we are publishing an official release. # In this situation, we need to set `output.stable` to create/update the following tags (additionally to the `vX.Y.Z` Docker tag): From 5f5b787483272b409037862e0ee5fb6286bb30b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9mentine=20Urquizar?= Date: Sun, 4 Sep 2022 11:32:22 +0200 Subject: [PATCH 2/2] Use meili-bot PAT everywhere --- .github/workflows/create-issue-dependencies.yml | 6 +++--- .github/workflows/publish-binaries.yml | 4 ++-- .github/workflows/publish-deb-brew-pkg.yml | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/create-issue-dependencies.yml b/.github/workflows/create-issue-dependencies.yml index 638088c2e..e3deebe2a 100644 --- a/.github/workflows/create-issue-dependencies.yml +++ b/.github/workflows/create-issue-dependencies.yml @@ -3,7 +3,7 @@ on: schedule: - cron: '0 0 1 */3 *' workflow_dispatch: - + jobs: create-issue: runs-on: ubuntu-latest @@ -12,12 +12,12 @@ jobs: - name: Create an issue uses: actions-ecosystem/action-create-issue@v1 with: - github_token: ${{ secrets.GITHUB_TOKEN }} + github_token: ${{ secrets.MEILI_BOT_GH_PAT }} title: Upgrade dependencies body: | We need to update the dependencies of the Meilisearch repository, and, if possible, the dependencies of all the core-team repositories that Meilisearch depends on (milli, charabia, heed...). - ⚠️ This issue should only be done at the beginning of the sprint! + ⚠️ This issue should only be done at the beginning of the sprint! labels: | dependencies maintenance diff --git a/.github/workflows/publish-binaries.yml b/.github/workflows/publish-binaries.yml index 9eecaf908..95088b1ef 100644 --- a/.github/workflows/publish-binaries.yml +++ b/.github/workflows/publish-binaries.yml @@ -62,7 +62,7 @@ jobs: if: github.event_name != 'schedule' uses: svenstaro/upload-release-action@v1-release with: - repo_token: ${{ secrets.PUBLISH_TOKEN }} + repo_token: ${{ secrets.MEILI_BOT_GH_PAT }} file: target/release/${{ matrix.artifact_name }} asset_name: ${{ matrix.asset_name }} tag: ${{ github.ref }} @@ -132,7 +132,7 @@ jobs: if: github.event_name != 'schedule' uses: svenstaro/upload-release-action@v1-release with: - repo_token: ${{ secrets.PUBLISH_TOKEN }} + repo_token: ${{ secrets.MEILI_BOT_GH_PAT }} file: target/${{ matrix.target }}/release/meilisearch asset_name: ${{ matrix.asset_name }} tag: ${{ github.ref }} diff --git a/.github/workflows/publish-deb-brew-pkg.yml b/.github/workflows/publish-deb-brew-pkg.yml index 1dc56f940..a135ddafb 100644 --- a/.github/workflows/publish-deb-brew-pkg.yml +++ b/.github/workflows/publish-deb-brew-pkg.yml @@ -29,7 +29,7 @@ jobs: - name: Upload debian pkg to release uses: svenstaro/upload-release-action@v1-release with: - repo_token: ${{ secrets.GITHUB_TOKEN }} + repo_token: ${{ secrets.MEILI_BOT_GH_PAT }} file: target/debian/meilisearch.deb asset_name: meilisearch.deb tag: ${{ github.ref }}