Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,20 @@ jobs:
run: |
echo "GHA_DOCS_PUBLISH_PROJECT=${GITHUB_REPOSITORY#*/}" >> $GITHUB_ENV
- uses: actions/checkout@v6
- name: Check for ENTUR_DOCS_SA secret
env:
ENTUR_DOCS_SA: ${{ secrets.ENTUR_DOCS_SA }}
REPO_VISIBILITY: ${{ github.event.repository.visibility }}
run: |
if [ -z "${ENTUR_DOCS_SA}" ]; then
if [ "${REPO_VISIBILITY}" = "public" ]; then
echo "::error::Upload to bucket will not work out of the box for public repositories, due to the \
repository secret ENTUR_DOCS_SA not being available. Ask Team Plattform to add it."
else
echo "::error::The repository secret ENTUR_DOCS_SA is not available. Please ensure it is configured."
fi
exit 1
fi
- id: auth
uses: google-github-actions/auth@7c6bc770dae815cd3e89ee6cdf493a5fab2cc093 # v3.0.0
with:
Expand Down
Loading