From d2ae6fc9bada7ecbfd23f617670f6b135cafc99b Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Sat, 20 Jul 2024 20:05:17 +0300 Subject: [PATCH] Bump GitHub Actions Signed-off-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> --- .github/workflows/add-untriaged.yml | 2 +- .github/workflows/backport.yml | 2 +- .github/workflows/changelog_verifier.yml | 2 +- .github/workflows/ci.yml | 16 ++++++++-------- .github/workflows/dependabot_pr.yml | 8 ++++---- .github/workflows/docs.yml | 6 +++--- .github/workflows/integration-unreleased.yml | 6 +++--- .github/workflows/integration.yml | 4 ++-- .github/workflows/links.yml | 4 ++-- .github/workflows/release-drafter.yml | 10 +++++----- .github/workflows/test.yml | 6 +++--- .github/workflows/unified-release.yml | 2 +- .github/workflows/update_api.yml | 6 +++--- 13 files changed, 37 insertions(+), 37 deletions(-) diff --git a/.github/workflows/add-untriaged.yml b/.github/workflows/add-untriaged.yml index 9dcc7020d..74e494be1 100644 --- a/.github/workflows/add-untriaged.yml +++ b/.github/workflows/add-untriaged.yml @@ -8,7 +8,7 @@ jobs: apply-label: runs-on: ubuntu-latest steps: - - uses: actions/github-script@v6 + - uses: actions/github-script@v7 with: script: | github.rest.issues.addLabels({ diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml index e47d8d88c..aa64c7e58 100644 --- a/.github/workflows/backport.yml +++ b/.github/workflows/backport.yml @@ -15,7 +15,7 @@ jobs: steps: - name: GitHub App token id: github_app_token - uses: tibdex/github-app-token@v1.5.0 + uses: tibdex/github-app-token@v2.1.0 with: app_id: ${{ secrets.APP_ID }} private_key: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/changelog_verifier.yml b/.github/workflows/changelog_verifier.yml index 220c36f4b..c1dd1cf47 100644 --- a/.github/workflows/changelog_verifier.yml +++ b/.github/workflows/changelog_verifier.yml @@ -8,7 +8,7 @@ jobs: verify-changelog: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: token: ${{ secrets.GITHUB_TOKEN }} ref: ${{ github.event.pull_request.head.sha }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a1e826ccc..93ff42e5d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,9 +8,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Python 3.8 - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: 3.8 - name: Install dependencies @@ -23,9 +23,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Python 3.8 - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: 3.8 - name: Install dependencies @@ -38,9 +38,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Python 3.8 - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: 3.8 - name: Install build tools @@ -53,9 +53,9 @@ jobs: twine-check: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.x" - name: Install dependencies diff --git a/.github/workflows/dependabot_pr.yml b/.github/workflows/dependabot_pr.yml index 5abbd37e3..8d3e0a555 100644 --- a/.github/workflows/dependabot_pr.yml +++ b/.github/workflows/dependabot_pr.yml @@ -18,24 +18,24 @@ jobs: steps: - name: GitHub App token id: github_app_token - uses: tibdex/github-app-token@v1.5.0 + uses: tibdex/github-app-token@v2.1.0 with: app_id: ${{ secrets.APP_ID }} private_key: ${{ secrets.APP_PRIVATE_KEY }} installation_id: 22958780 - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: token: ${{ steps.github_app_token.outputs.token }} - name: Update the changelog - uses: dangoslen/dependabot-changelog-helper@v2 + uses: dangoslen/dependabot-changelog-helper@v3 with: version: 'Unreleased' - name: Commit the changes - uses: stefanzweifel/git-auto-commit-action@v4 + uses: stefanzweifel/git-auto-commit-action@v5 with: commit_message: "Update changelog" branch: ${{ github.head_ref }} diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 96105baec..13150c417 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -5,8 +5,8 @@ jobs: build-and-deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: python-version: 3.8 @@ -19,7 +19,7 @@ jobs: nox -rs docs - name: Deploy - uses: peaceiris/actions-gh-pages@v3 + uses: peaceiris/actions-gh-pages@v4 if: github.ref == 'refs/heads/main' with: github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/integration-unreleased.yml b/.github/workflows/integration-unreleased.yml index 6b6a3d1c3..f9efb6b03 100644 --- a/.github/workflows/integration-unreleased.yml +++ b/.github/workflows/integration-unreleased.yml @@ -12,7 +12,7 @@ jobs: steps: - name: Checkout OpenSearch - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: opensearch-project/opensearch ref: ${{ matrix.opensearch_ref }} @@ -30,7 +30,7 @@ jobs: path: opensearch/distribution/archives/linux-tar/build/distributions key: ${{ steps.get-key.outputs.key }} - - uses: actions/setup-java@v3 + - uses: actions/setup-java@v4 with: distribution: 'temurin' # See 'Supported distributions' for available options java-version: '11' @@ -55,7 +55,7 @@ jobs: for attempt in {1..20}; do sleep 5; if curl -s localhost:9200; then echo '=====> ready'; break; fi; echo '=====> waiting...'; done - name: Checkout Python Client - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: opensearch-py diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index dd8f28043..dbdad913b 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -19,7 +19,7 @@ jobs: secured: "true" steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Integ OpenSearch secured=${{ matrix.secured }} version=${{ matrix.opensearch_version }} run: "./.ci/run-tests ${{ matrix.secured }} ${{ matrix.opensearch_version }}" @@ -37,6 +37,6 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Integ OpenSearch secured=${{ matrix.secured }} version=${{ matrix.opensearch_version }} run: "./.ci/run-tests ${{ matrix.secured }} ${{ matrix.opensearch_version }}" diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml index 9d1b9b69b..cfc08c8d2 100644 --- a/.github/workflows/links.yml +++ b/.github/workflows/links.yml @@ -13,10 +13,10 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: lychee Link Checker id: lychee - uses: lycheeverse/lychee-action@v1.5.0 + uses: lycheeverse/lychee-action@v1.9.3 with: args: --accept=200,403,429 "**/*.html" "**/*.md" "**/*.txt" "**/*.json" --exclude-file ".github/workflows/.lychee.excludes" --exclude-mail fail: true diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 1c95cadef..7499f2640 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -13,7 +13,7 @@ jobs: issues: write steps: - name: Checkout Repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - id: get_approvers run: | echo "approvers=$(cat .github/CODEOWNERS | grep @ | tr -d '* ' | sed 's/@/,/g' | sed 's/,//1')" >> $GITHUB_OUTPUT @@ -26,7 +26,7 @@ jobs: issue-body: "Please approve or deny the release of opensearch-py. **Tag**: ${{ github.ref_name }} **Commit**: ${{ github.sha }}" exclude-workflow-initiator-as-approver: true - name: Set up Python 3 - uses: actions/setup-python@v3 + uses: actions/setup-python@v5 with: python-version: '3.x' - name: Install build tools @@ -36,7 +36,7 @@ jobs: run: | python -m build - name: upload windows dists - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: release-dists path: dist/ @@ -50,7 +50,7 @@ jobs: contents: write steps: - name: Retrieve release distributions - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: release-dists path: dist @@ -60,7 +60,7 @@ jobs: - name: Publish package distributions to PyPI uses: pypa/gh-action-pypi-publish@release/v1 - name: Release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: generate_release_notes: true files: | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 39c5123e2..fc74f4218 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,9 +22,9 @@ jobs: runs-on: ${{ matrix.entry.os }} steps: - name: Checkout Source Code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set Up Python - ${{ matrix.entry.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.entry.python-version }} env: @@ -37,7 +37,7 @@ jobs: run: | python -m nox -rs test-${{ matrix.entry.python-version }} - name: Upload coverage to Codecov - uses: codecov/codecov-action@v2 + uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} files: ./junit/opensearch-py-codecov.xml diff --git a/.github/workflows/unified-release.yml b/.github/workflows/unified-release.yml index 3fdcab114..3fce519d3 100644 --- a/.github/workflows/unified-release.yml +++ b/.github/workflows/unified-release.yml @@ -13,6 +13,6 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - run: "./.ci/make.sh assemble ${{ matrix.stack_version }}" name: Assemble ${{ matrix.stack_version }} diff --git a/.github/workflows/update_api.yml b/.github/workflows/update_api.yml index 2dc99b608..4c449c869 100644 --- a/.github/workflows/update_api.yml +++ b/.github/workflows/update_api.yml @@ -18,7 +18,7 @@ jobs: - name: Config git to rebase run: git config --global pull.rebase true - name: Set up Python 3.8 - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: 3.8 - name: Install dependencies @@ -31,14 +31,14 @@ jobs: run: echo "::set-output name=date::$(date +'%Y-%m-%d')" - name: GitHub App token id: github_app_token - uses: tibdex/github-app-token@v1.5.0 + uses: tibdex/github-app-token@v2.1.0 with: app_id: ${{ secrets.APP_ID }} private_key: ${{ secrets.APP_PRIVATE_KEY }} installation_id: 22958780 - name: Create pull request id: cpr - uses: peter-evans/create-pull-request@v5 + uses: peter-evans/create-pull-request@v6 with: token: ${{ steps.github_app_token.outputs.token }} commit-message: Updated opensearch-py to reflect the latest OpenSearch API spec (${{ steps.date.outputs.date }})