From 6bfeba5b68d443384cc0b34b960d39f72d4abd29 Mon Sep 17 00:00:00 2001 From: Ivan Kolodiazhnyi Date: Mon, 2 Dec 2024 22:44:10 +0200 Subject: [PATCH] feat: Network Operator release trigger We need to start SR-IOV Network Operator release if Network Operator Release pipeline started. Signed-off-by: Ivan Kolodiazhnyi --- .github/workflows/release.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 00000000..0089ff51 --- /dev/null +++ b/.github/workflows/release.yaml @@ -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 svc-cloud-orch-gh@nvidia.com + git tag network-operator-$RELEASE_NAME + git push origin --tags