Update Helm index #107
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Helm index | |
on: | |
workflow_dispatch: | |
inputs: | |
archive-url: | |
description: 'URL to the Helm archive (e.g., https://github.com/antrea-io/antrea/releases/download/v1.8.0/antrea-chart.tgz)' | |
required: true | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Wait for exclusive access | |
uses: ben-z/[email protected] | |
with: | |
repo-token: ${{ secrets.ANTREA_BOT_PAT }} | |
repository: antrea-io/website | |
branch: needs_to_commit-mutex | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
with: | |
ref: main | |
path: website | |
token: ${{ secrets.ANTREA_BOT_PAT }} | |
- name: Update Helm index file | |
env: | |
ARCHIVE_URL: ${{ github.event.inputs.archive-url }} | |
run: | | |
./website/scripts/update-helm-index.sh --website-repo website --archive-url $ARCHIVE_URL | |
- name: Commit changes as antrea-bot | |
uses: EndBug/add-and-commit@v9 | |
with: | |
cwd: ./website | |
author_name: antrea-bot | |
author_email: [email protected] | |
message: "Helm index update for ${{ github.event.inputs.archive-url }}" |