From 2e6b5382980a6fe805cee133300bf4694dce510f Mon Sep 17 00:00:00 2001 From: Ivan Kolodiazhnyi Date: Wed, 13 Nov 2024 18:30:13 +0200 Subject: [PATCH] Add workflow --- .github/workflows/release.yaml | 38 ++++++++++++++++++++++++++++++++++ 1 file changed, 38 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 000000000..c1814ab0f --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,38 @@ +on: + issues: + types: + - opened + +jobs: + label_issue: + runs-on: ubuntu-latest + steps: + - env: + GH_TOKEN: ${{ secrets.GH_TOKEN_NVIDIA_CI_CD }} + ISSUE_URL: ${{ github.event.issue.html_url }} + ISSUE_TITLE: ${{ github.event.issue.title }} + GITHUB_CONTEXT: ${{ toJson(github) }} + run: | + echo "ISSUE_TITLE" + + + + update_network_operator_values: + runs-on: ubuntu-latest + env: + DOCKER_TAG: "v0.0.2" + steps: + - uses: actions/checkout@v4 + with: + token: ${{ secrets.GH_TOKEN_NVIDIA_CI_CD }} + repository: ${{ github.repository_owner }}/sriov-network-operator + - name: store release name + run: echo "RELEASE_NAME=$(echo $ISSUE_TITLE | awk '/Release v/{print $2}')" >> $GITHUB_ENV + + - name: Create PR to update image tags in network-operator values + run: | + git config user.name nvidia-ci-cd + git config user.email svc-cloud-orch-gh@nvidia.com + git checkout -b release-4.6 + git tag $RELEASE_NAME + git push origin --tags