Skip to content
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
7 changes: 6 additions & 1 deletion .github/workflows/create-tag-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,14 @@ jobs:
version: ${{ inputs.version }}
secrets: inherit

package-update:
name: Update Package Imports
uses: dell/common-github-actions/.github/workflows/update-libraries.yml@main
secrets: inherit

build-and-scan:
name: Build and Scan
needs: [process-inputs]
needs: [process-inputs, package-update]
outputs:
processedVersion: ${{ needs.process-inputs.outputs.processedVersion }}
runs-on: ubuntu-latest
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/csm-release-libs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,14 @@ jobs:
version: ${{ inputs.version }}
secrets: inherit

package-update:
name: Update Package Imports
uses: dell/common-github-actions/.github/workflows/update-libraries.yml@main
secrets: inherit

build-and-scan:
name: Build and Scan
needs: [process-inputs]
needs: [process-inputs, package-update]
outputs:
processedVersion: ${{ needs.process-inputs.outputs.processedVersion }}
runs-on: ubuntu-latest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
needs: release_independent_repos
strategy:
matrix:
repo: ["dell/gobrick"]
repo: ["dell/gobrick", "dell/csi-metadata-retriever"]
steps:
- name: Trigger Release of ${{ matrix.repo }}
uses: peter-evans/repository-dispatch@v4
Expand Down
40 changes: 34 additions & 6 deletions .github/workflows/trigger-auto-csm-release-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,13 @@ on:
workflow_dispatch:

jobs:
trigger:
name: Trigger Release of CSM Drivers and Modules
release_independent_repos:
name: Release Independent CSM Drivers and Modules
runs-on: ubuntu-latest

strategy:
matrix:
repo:
[
"dell/csi-metadata-retriever",
"dell/csi-powerflex",
"dell/csi-powermax",
"dell/csi-powerscale",
Expand All @@ -32,9 +30,7 @@ jobs:
"dell/csm-metrics-powerstore",
"dell/csm-operator",
"dell/csm-replication",
"dell/karavi-resiliency",
"dell/karavi-metrics-powerflex",
"dell/cert-csi",
]

steps:
Expand All @@ -46,3 +42,35 @@ jobs:
repository: ${{ matrix.repo }}
event-type: auto-release-workflow
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'

- name: Check status of triggered workflows for release of ${{ matrix.repo }}
run: |
curl -sfL https://raw.githubusercontent.com/dell/common-github-actions/main/.github/scripts/check_workflow_status.sh -o check_workflow_status.sh
chmod +x check_workflow_status.sh
bash check_workflow_status.sh ${{ secrets.CSMBOT_PAT }} ${{ matrix.repo }} "repository_dispatch"
shell: bash

release_dependent_repo:
name: Release Dependent CSM Drivers and Modules
runs-on: ubuntu-latest
strategy:
matrix:
repo:
["dell/karavi-resiliency", "dell/karavi-observability", "dell/cert-csi"]

steps:
- name: Trigger Release of CSM Drivers and Modules
uses: peter-evans/repository-dispatch@v4
with:
# For token information, see: https://github.com/peter-evans/repository-dispatch/tree/main?tab=readme-ov-file#token
token: ${{ secrets.CSMBOT_PAT }}
repository: ${{ matrix.repo }}
event-type: auto-release-workflow
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'

- name: Check status of triggered workflows for release of ${{ matrix.repo }}
run: |
curl -sfL https://raw.githubusercontent.com/dell/common-github-actions/main/.github/scripts/check_workflow_status.sh -o check_workflow_status.sh
chmod +x check_workflow_status.sh
bash check_workflow_status.sh ${{ secrets.CSMBOT_PAT }} ${{ matrix.repo }} "repository_dispatch"
shell: bash