Skip to content

Commit

Permalink
Trigger "Update Helm index" workflow for releases (#73)
Browse files Browse the repository at this point in the history
Trigger the workflow in antrea-io/website to update the Helm index for
the Theia archive.

Signed-off-by: Antonin Bas <[email protected]>
  • Loading branch information
antoninbas authored Jul 8, 2022
1 parent 7ac8617 commit 4c04ca8
Showing 1 changed file with 23 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: Upload assets to release
name: Process new release

on:
release:
types:
- created

jobs:
build:
runs-on: [ubuntu-latest]
upload-release-assets:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.17
uses: actions/setup-go@v2
Expand Down Expand Up @@ -83,3 +83,23 @@ jobs:
asset_path: ./assets/theia-chart.tgz
asset_name: theia-chart.tgz
asset_content_type: application/octet-stream

update-website:
name: Trigger website update for release
needs: upload-release-assets
runs-on: ubuntu-latest
steps:
- id: get-version
env:
TAG: ${{ github.ref }}
run: |
version=${TAG:10}
echo "::set-output name=version::$version"
- name: Update Helm index with Theia archive
uses: benc-uk/workflow-dispatch@v1
with:
repo: antrea-io/website
ref: refs/heads/main
workflow: Update Helm index
token: ${{ secrets.ANTREA_WEBSITE_WORKFLOW_DISPATCH_PAT }}
inputs: ${{ format('{{ "archive-url":"https://github.com/antrea-io/theia/releases/download/{0}/theia-chart.tgz" }}', steps.get-version.outputs.version) }}

0 comments on commit 4c04ca8

Please sign in to comment.