Skip to content

Commit

Permalink
feat: Network Operator release trigger
Browse files Browse the repository at this point in the history
We need to start SR-IOV Network Operator release if Network Operator
Release pipeline started.

Signed-off-by: Ivan Kolodiazhnyi <[email protected]>
  • Loading branch information
e0ne committed Dec 4, 2024
1 parent bc10bf0 commit 6bfeba5
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
on:
issues:
types:
- opened

jobs:
update_network_operator_values:
runs-on: ubuntu-latest
env:
ISSUE_TITLE: ${{ github.event.issue.title }}
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GH_TOKEN_NVIDIA_CI_CD }}
repository: ${{ github.repository_owner }}/sriov-network-operator
- name: Save release name
run: echo "RELEASE_NAME=$(echo $ISSUE_TITLE | awk '/Release v/{print $2}')" >> $GITHUB_ENV

- name: Tag SRIOV-Network Operator
if: ${{ env.RELEASE_NAME != '' }
run: |
git config user.name nvidia-ci-cd
git config user.email [email protected]
git tag network-operator-$RELEASE_NAME
git push origin --tags

0 comments on commit 6bfeba5

Please sign in to comment.