Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update upload-artifact and add dependabot for github actions #296

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading