Skip to content

Commit

Permalink
Update upload-artifact and add dependabot for github actions (#296) (#…
Browse files Browse the repository at this point in the history
…297)

Signed-off-by: Thomas Farr <[email protected]>
(cherry picked from commit d064e5e)

Co-authored-by: Thomas Farr <[email protected]>
  • Loading branch information
opensearch-trigger-bot[bot] and Xtansia authored Dec 11, 2024
1 parent c94bad3 commit 329ba35
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 14 deletions.
12 changes: 10 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 1 addition & 2 deletions .github/workflows/backport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/dependabot_pr.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Dependabot PR Actions
on:
on:
pull_request:
types:
- opened
Expand All @@ -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
Expand All @@ -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
Expand All @@ -41,4 +40,4 @@ jobs:
branch: ${{ github.head_ref }}
commit_user_name: dependabot[bot]
commit_user_email: [email protected]
commit_options: '--signoff'
commit_options: "--signoff"
9 changes: 4 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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: |
Expand All @@ -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
Expand Down Expand Up @@ -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: |
Expand Down

0 comments on commit 329ba35

Please sign in to comment.