Skip to content

Commit

Permalink
Add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
e0ne committed Dec 2, 2024
1 parent 86aab58 commit 2e6b538
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -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 [email protected]
git checkout -b release-4.6
git tag $RELEASE_NAME
git push origin --tags

0 comments on commit 2e6b538

Please sign in to comment.