Skip to content

Fix required: true in build-swiftusd.inputs #18

Fix required: true in build-swiftusd.inputs

Fix required: true in build-swiftusd.inputs #18

#===----------------------------------------------------------------------===#
# This source file is part of github.com/apple/SwiftUsd
#
# Copyright © 2025 Apple Inc. and the SwiftUsd project authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
#===----------------------------------------------------------------------===#
name: Check Pull Requests for Documentation Warnings
permissions:
contents: read
on: pull_request
jobs:
Build-SwiftUsd:

Check failure on line 27 in .github/workflows/check-pull-requests-for-documentation-warnings.yml

View workflow run for this annotation

GitHub Actions / Check Pull Requests for Documentation Warnings

Invalid workflow file

The workflow is not valid. .github/workflows/check-pull-requests-for-documentation-warnings.yml (Line: 27, Col: 5): Error calling workflow 'apple/SwiftUsd/.github/workflows/build-swiftusd.yml@aeb117e66ff082eeb5e0bfa2f36e9b7e962f1b44'. The nested job 'Make-Swift-Package' is requesting 'contents: write', but is only allowed 'contents: read'.
uses: ./.github/workflows/build-swiftusd.yml
with:
swiftusd-ref: ${{ github.ref }}
Check-Documentation-Warnings:
runs-on: [self-hosted, macos]
needs: [Build-SwiftUsd]
steps:
- name: Download package artifact
uses: actions/download-artifact@v5
with:
path: .
name: SwiftUsd-package-${{ github.run_id }}
- name: Check for documentation warnings
run: |
swift run --package-path ./scripts/docc build-documentation
swift run --package-path ./scripts/docc check-documentation