Skip to content

Fix CI job

Fix CI job #2

# This job requires a secret called DOCS_TOKEN which should be a PAT token
# that has the permissions described in:
# validatedpatterns/docs/.github/workflows/metadata-docs.yml@main
---
name: Update docs pattern metadata
on:
push:
paths:
- "pattern-metadata.yaml"
- ".github/workflows/update-metadata.yml"
jobs:
update-metadata:
uses: validatedpatterns/docs/.github/workflows/metadata-docs.yml@main
permissions: # Workflow-level permissions
contents: read # Required for "read-all"
packages: write # Allows writing to packages
id-token: write # Allows creating OpenID Connect (OIDC) tokens
secrets:
# Needed when calling the workflow from an org that is different than "validatedpatterns"
DOCS_TOKEN: ${{ secrets.DOCS_TOKEN }}

Check failure on line 22 in .github/workflows/update-metadata.yml

View workflow run for this annotation

GitHub Actions / Update docs pattern metadata

Invalid workflow file

The workflow is not valid. .github/workflows/update-metadata.yml (Line: 22, Col: 19): Invalid secret, DOCS_TOKEN is not defined in the referenced workflow.
# For testing you can point to a different branch in the docs repository
# with:
# DOCS_BRANCH: "main"