From d4e4dcd596d1f3a2dc23789cacba55556805d3e3 Mon Sep 17 00:00:00 2001 From: Wayback Archiver <66856220+waybackarchiver@users.noreply.github.com> Date: Tue, 20 Feb 2024 13:21:45 +0000 Subject: [PATCH] Replace meilisearch actions with wabarc/.github/meilisearch instead (#491) * Replace meilisearch actions with wabarc/.github/meilisearch instead * Move up check out job * update changelog.md --- .github/workflows/testing.yml | 41 +++++++++++++++-------------------- docs/changelog.md | 1 + 2 files changed, 18 insertions(+), 24 deletions(-) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 03cbcf1b..b3cb1fb2 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -65,6 +65,19 @@ jobs: egress-policy: audit disable-telemetry: true + - name: Check out code base + if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' + uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0 + with: + fetch-depth: 0 + + - name: Check out code base + if: github.event_name == 'pull_request' + uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0 + with: + fetch-depth: 0 + ref: ${{ github.event.pull_request.head.sha }} + - name: Set up Go ${{ matrix.go }}.x uses: actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f # v3.3.1 with: @@ -87,12 +100,10 @@ jobs: chrome-version: stable - name: Set up Meilisearch - if: matrix.os == 'ubuntu-latest' - uses: moy2010/meilisearch-github-action@fcc5ef714af0596633665032d459bfb279d3c730 # 0.1.4 + uses: wabarc/.github/meilisearch@0c62d131c3884390bd63a2b7650a21fe16581bfe with: - meilisearch-version: ${{ vars.MEILISEARCH_VERSION }} - meilisearch-port: ${{ vars.MEILISEARCH_PORT }} - meilisearch-api-key: ${{ vars.MEILISEARCH_APIKEY }} + master-key: ${{ vars.MEILISEARCH_APIKEY }} + port: ${{ vars.MEILISEARCH_PORT }} - name: Set up Chocolatey if: matrix.os == 'windows-latest' @@ -146,30 +157,12 @@ jobs: # echo "$(which you-get)" >> $GITHUB_PATH # echo "$(which ffmpeg)" >> $GITHUB_PATH # echo "$(which wget)" >> $GITHUB_PATH - - - name: Set environments for Meilisearch - if: matrix.os == 'ubuntu-latest' - shell: bash - run: | - # Set env to enable reduxer + # Set environments for Meilisearch to enable reduxer echo "WAYBACK_MEILI_ENDPOINT=${{ vars.WAYBACK_MEILI_ENDPOINT }}" >> $GITHUB_ENV echo "PLAYBACK_MEILI_ENDPOINT=${{ vars.WAYBACK_MEILI_ENDPOINT }}" >> $GITHUB_ENV echo "WAYBACK_MEILI_APIKEY=${{ vars.MEILISEARCH_APIKEY }}" >> $GITHUB_ENV echo "PLAYBACK_MEILI_APIKEY=${{ vars.MEILISEARCH_APIKEY }}" >> $GITHUB_ENV - - name: Check out code base - if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0 - with: - fetch-depth: 0 - - - name: Check out code base - if: github.event_name == 'pull_request' - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0 - with: - fetch-depth: 0 - ref: ${{ github.event.pull_request.head.sha }} - - name: Cache go module uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11 with: diff --git a/docs/changelog.md b/docs/changelog.md index fbe9dbd1..d920fafb 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -23,6 +23,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Improve documentation ([#385](https://github.com/wabarc/wayback/pull/385)) - Refactoring HTTP client for better consistency and maintainability ([#401](https://github.com/wabarc/wayback/pull/401)) - ci: bump action version for page workflow +- Replace meilisearch actions with `wabarc/.github/meilisearch` instead ([#491](https://github.com/wabarc/wayback/pull/491)) ## [0.19.1] - 2023-03-21