From 57af7542dd2e292b9d1b19961cefee2dcaece6c1 Mon Sep 17 00:00:00 2001 From: Thomas Farr Date: Wed, 11 Dec 2024 16:10:21 +1300 Subject: [PATCH] Update upload-artifact and add dependabot for github actions Signed-off-by: Thomas Farr --- .github/dependabot.yml | 12 ++++++++++-- .github/workflows/backport.yml | 3 +-- .github/workflows/dependabot_pr.yml | 9 ++++----- .github/workflows/test.yml | 9 ++++----- 4 files changed, 19 insertions(+), 14 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 138fae9e..d538f26b 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -5,6 +5,14 @@ updates: schedule: interval: weekly labels: - - "dependabot" - - "dependencies" + - dependabot + - dependencies + - directory: / + open-pull-requests-limit: 3 + package-ecosystem: github-actions + schedule: + interval: weekly + labels: + - dependabot + - dependencies version: 2 diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml index e47d8d88..682eb7b8 100644 --- a/.github/workflows/backport.yml +++ b/.github/workflows/backport.yml @@ -15,11 +15,10 @@ jobs: steps: - name: GitHub App token id: github_app_token - uses: tibdex/github-app-token@v1.5.0 + uses: actions/create-github-app-token@v1 with: app_id: ${{ secrets.APP_ID }} private_key: ${{ secrets.APP_PRIVATE_KEY }} - installation_id: 22958780 - name: Backport uses: VachaShah/backport@v1.1.4 diff --git a/.github/workflows/dependabot_pr.yml b/.github/workflows/dependabot_pr.yml index d8511dee..61b54e64 100644 --- a/.github/workflows/dependabot_pr.yml +++ b/.github/workflows/dependabot_pr.yml @@ -1,5 +1,5 @@ name: Dependabot PR Actions -on: +on: pull_request: types: - opened @@ -18,11 +18,10 @@ jobs: steps: - name: GitHub App token id: github_app_token - uses: tibdex/github-app-token@v1.5.0 + uses: actions/create-github-app-token@v1 with: app_id: ${{ secrets.APP_ID }} private_key: ${{ secrets.APP_PRIVATE_KEY }} - installation_id: 22958780 - name: Check out code uses: actions/checkout@v4 @@ -32,7 +31,7 @@ jobs: - name: Update the changelog uses: dangoslen/dependabot-changelog-helper@v2 with: - version: 'Unreleased' + version: "Unreleased" - name: Commit the changes uses: stefanzweifel/git-auto-commit-action@v4 @@ -41,4 +40,4 @@ jobs: branch: ${{ github.head_ref }} commit_user_name: dependabot[bot] commit_user_email: support@github.com - commit_options: '--signoff' \ No newline at end of file + commit_options: "--signoff" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 93847e3f..5ca38778 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -63,7 +63,7 @@ jobs: - name: Save OpenSearch logs if: failure() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: opensearch-${{ matrix.os }}-${{ matrix.test-args }} path: | @@ -121,7 +121,7 @@ jobs: - name: Save OpenSearch logs if: failure() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: opensearch-logs-${{ matrix.version }}-${{ matrix.secured }} path: | @@ -140,12 +140,11 @@ jobs: steps: - name: GitHub App token id: github_app_token - uses: tibdex/github-app-token@v1.5.0 + uses: actions/create-github-app-token@v1 if: github.event_name == 'schedule' && github.repository == 'opensearch-project/opensearch-rs' with: app_id: ${{ secrets.APP_ID }} private_key: ${{ secrets.APP_PRIVATE_KEY }} - installation_id: 22958780 - name: Checkout Rust Client uses: actions/checkout@v4 @@ -217,7 +216,7 @@ jobs: - name: Save OpenSearch logs if: failure() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: opensearch-logs-${{ matrix.opensearch_ref }} path: |