Skip to content

Commit ea4c919

Browse files
committed
Add csi sidecars update action
1 parent dfe02a2 commit ea4c919

1 file changed

Lines changed: 51 additions & 0 deletions

File tree

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Copyright (c) 2025 Dell Inc., or its subsidiaries. All Rights Reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
9+
# Reusable workflow to perform update of CSI sidecars.
10+
name: CSI Sidecars Update
11+
12+
# Invocable as a reusable workflow
13+
on:
14+
workflow_call:
15+
16+
jobs:
17+
csi-sidecars-update:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v4
22+
23+
- name: Get Latest CSI Sidecar Versions from dell/csm
24+
run: |
25+
curl -s https://raw.githubusercontent.com/falfaroc/csm/refs/heads/update-csi-sidecars/config/csm-versions.yaml > versions-content
26+
27+
28+
# Needed for signing commits using Github App tokens
29+
# See: https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#commit-signing
30+
- name: Generate GitHub App Token
31+
uses: actions/create-github-app-token@v2.0.6
32+
id: generate-token
33+
with:
34+
app-id: ${{ vars.CSM_RELEASE_APP_ID }}
35+
private-key: ${{ secrets.CSM_RELEASE_APP_PRIVATE_KEY }}
36+
37+
# Must enable "allow GitHub Actions to create pull requests" setting
38+
# Author defaults to the user who triggered the workflow run
39+
- name: Create pull request
40+
uses: peter-evans/create-pull-request@v7
41+
with:
42+
token: ${{ steps.generate-token.outputs.token }}
43+
branch: "update-csi-sidecars"
44+
commit-message: "Update CSI sidecar versions latest"
45+
title: "Update CSI sidecar versions latest"
46+
body: |
47+
Automated update of CSI sidecar versions.
48+
49+
Auto-generated by [common-github-actions](https://github.com/dell/common-github-actions)
50+
sign-commits: true
51+
delete-branch: true

0 commit comments

Comments
 (0)