chore: Minor revisions

This commit is contained in:
Brennan Kinney 2024-11-19 13:48:28 +13:00 committed by GitHub
parent 5fac891906
commit 74b1a0bb85
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 4 deletions

View File

@ -1,4 +1,4 @@
name: 'Documentation (run)' name: 'Documentation (Deploy)'
on: on:
# This workflow runs off the primary branch which provides access to the `secrets` context: # This workflow runs off the primary branch which provides access to the `secrets` context:
@ -10,7 +10,9 @@ on:
permissions: permissions:
# Required by `actions/download-artifact`: # Required by `actions/download-artifact`:
actions: read actions: read
# Required by `marocchino/sticky-pull-request-comment`: # Required by `set-pr-context`:
contents: read
# Required by `marocchino/sticky-pull-request-comment` (write) + `set-pr-context` (read):
pull-requests: write pull-requests: write
# Required by `myrotvorets/set-commit-status-action`: # Required by `myrotvorets/set-commit-status-action`:
statuses: write statuses: write
@ -46,7 +48,7 @@ jobs:
gh pr view --repo "${PR_TARGET_REPO}" "${PR_BRANCH}" \ gh pr view --repo "${PR_TARGET_REPO}" "${PR_BRANCH}" \
--json 'number,headRefOid' \ --json 'number,headRefOid' \
--jq '"number=\(.number)\nhead-sha=\(.headRefOid)"' \ --jq '"number=\(.number)\nhead-sha=\(.headRefOid)"' \
>> $GITHUB_OUTPUT >> "${GITHUB_OUTPUT}"
deploy-preview: deploy-preview:
name: 'Deploy Preview' name: 'Deploy Preview'
@ -159,6 +161,6 @@ jobs:
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
status: ${{ job.status == 'success' && 'success' || 'failure' }} status: ${{ job.status == 'success' && 'success' || 'failure' }}
sha: ${{ github.event.workflow_run.head_sha }} sha: ${{ env.PR_HEADSHA }}
context: 'Deploy Preview (pull_request => workflow_run)' context: 'Deploy Preview (pull_request => workflow_run)'
description: ${{ job.status == 'success' && env.DEPLOY_SUCCESS || env.DEPLOY_FAILURE }} description: ${{ job.status == 'success' && env.DEPLOY_SUCCESS || env.DEPLOY_FAILURE }}