Index (manual) #3
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: Index (manual) | ||
permissions: {} | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
namespace: | ||
description: "Namespace to regenerate" | ||
required: true | ||
type: string | ||
name: | ||
description: "Name of the provider or module to regenerate" | ||
required: false | ||
type: string | ||
default: "" | ||
target_system: | ||
description: "Target system of the module to regenerate" | ||
required: false | ||
type: string | ||
default: "" | ||
force_regenerate: | ||
type: string | ||
required: false | ||
default: "" | ||
description: "Force regenerating a namespace, name, or target system. This parameter is a comma-separate list consisting of either a namespace, a namespace and a name separated by a /, or a namespace, name and target system separated by a /. Example: namespace/name/targetsystem,othernamespace/othername" | ||
force_repo_data_update: | ||
type: boolean | ||
required: false | ||
default: false | ||
description: Force updating GitHub repository data even if no new version was found. (Use with care!) | ||
concurrency: | ||
group: index | ||
cancel-in-progress: false | ||
jobs: | ||
generate: | ||
name: Run generation | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: 'backend/go.mod' | ||
- name: Cache tofu binary | ||
uses: actions/cache@v4 | ||
with: | ||
path: ./backend/internal/moduleindex/moduleschema/testtofu | ||
key: tofu-binary | ||
- name: Build tofu | ||
working-directory: backend | ||
run: | ||
go generate ./... | ||
- name: Update documentation | ||
working-directory: backend | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}} | ||
AWS_ENDPOINT_URL_S3: ${{secrets.AWS_ENDPOINT_URL_S3}} | ||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}} | ||
S3_BUCKET: ${{secrets.S3_BUCKET}} | ||
NAMESPACE: ${{inputs.namespace}} | ||
NAME: ${{inputs.name}} | ||
TARGET_SYSTEM: ${{inputs.target_system}} | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
FORCE_REGENERATE: ${{inputs.force_regenerate}} | ||
FORCE_REPO_DATA_UPDATE_ARG: ${{inputs.force_repo_data_update && "--force-repo-data-update" || ""}} | ||
Check failure on line 65 in .github/workflows/index-manual.yml GitHub Actions / Index (manual)Invalid workflow file
|
||
run: | | ||
go run github.com/opentofu/registry-ui/cmd/generate --log-level=trace --s3-bucket=${S3_BUCKET} --blocklist ../blocklist.json --licenses-file ../licenses.json --namespace="${NAMESPACE}" --name="${NAME}" --target-system="${TARGET_SYSTEM}" --force-regenerate="${FORCE_REGENERATE}" "${FORCE_REPO_DATA_UPDATE_ARG}" | ||
- name: Update search index | ||
working-directory: search/pg-indexer | ||
env: | ||
PG_CONNECTION_STRING: ${{secrets.PG_CONNECTION_STRING}} | ||
run: go run ./ |