Skip to content

Commit

Permalink
action: update the action for bump nvidia driver toolkits
Browse files Browse the repository at this point in the history
    - Now we could bump the new version on harvester/addons directly

Signed-off-by: Vicente Cheng <[email protected]>
  • Loading branch information
Vicente-Cheng authored and bk201 committed Jul 5, 2024
1 parent 15b5080 commit 35e87b0
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/installer-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,6 @@ jobs:
ref: ${{ steps.spliter.outputs._0 }}
- name: Update os image
run: sed -i "s,^BASE_OS_IMAGE=.*,BASE_OS_IMAGE=\"${{ env.IMAGE_NAME }}\"," scripts/package-harvester-os
- name: Update nvidia driver toolkit tag
run: |
sed -i "/tag:/ {N; /harvester-nvidia-driver-toolkit/ s/tag:.*\n/tag: ${{ github.ref_name }}\n/}" pkg/config/templates/rancherd-22-addons.yaml
- name: Create installer PR
uses: peter-evans/create-pull-request@v5
with:
Expand Down Expand Up @@ -103,7 +100,7 @@ jobs:
```
${{ steps.read.outputs.content }}
```
create-harvester-pr:
create-addon-pr:
runs-on: ubuntu-latest
needs: generate-image-diff
steps:
Expand All @@ -112,15 +109,15 @@ jobs:
with:
msg: ${{ github.ref_name }}
separator: '-'
- name: Clone harvester repo
- name: Clone Addons repo
uses: actions/checkout@v3
with:
repository: harvester/harvester
repository: harvester/addons
ref: ${{ steps.spliter.outputs._0 }}
- name: Update nvidia driver toolkit tag
run: |
sed -i "/tag:/ {N; /harvester-nvidia-driver-toolkit/ s/tag:.*\n/tag: ${{ github.ref_name }}\n/}" package/upgrade/addons/nvidia-driver-toolkit.yaml
- name: Create harvester PR
sed -i "/tag:/ {N; /harvester-nvidia-driver-toolkit/ s/tag:.*\n/tag: ${{ github.ref_name }}\n/}" pkg/templates/rancherd-22-addons.yaml
- name: Create Addons PR
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.BOT_TOKEN }}
Expand Down

0 comments on commit 35e87b0

Please sign in to comment.