Fix CI job #2
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
# 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
|
||
# For testing you can point to a different branch in the docs repository | ||
# with: | ||
# DOCS_BRANCH: "main" |