Skip to content

Commit 076399b

Browse files
authored
chore: correct typos and configure permissions in pr-deploy.yaml (#15372)
1 parent 98e584b commit 076399b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/pr-deploy.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ jobs:
162162
set -euo pipefail
163163
# build if the workflow is manually triggered and the deployment doesn't exist (first build or force rebuild)
164164
echo "first_or_force_build=${{ (github.event_name == 'workflow_dispatch' && steps.check_deployment.outputs.NEW == 'true') || github.event.inputs.build == 'true' }}" >> $GITHUB_OUTPUT
165-
# build if the deployment alreday exist and there are changes in the files that we care about (automatic updates)
165+
# build if the deployment already exist and there are changes in the files that we care about (automatic updates)
166166
echo "automatic_rebuild=${{ steps.check_deployment.outputs.NEW == 'false' && steps.filter.outputs.all_count > steps.filter.outputs.ignored_count }}" >> $GITHUB_OUTPUT
167167
168168
comment-pr:
@@ -208,7 +208,7 @@ jobs:
208208
permissions:
209209
# Necessary to push docker images to ghcr.io.
210210
packages: write
211-
# This concurrency only cancels build jobs if a new build is triggred. It will avoid cancelling the current deployemtn in case of docs chnages.
211+
# This concurrency only cancels build jobs if a new build is triggred. It will avoid cancelling the current deployemtn in case of docs changes.
212212
concurrency:
213213
group: build-${{ github.workflow }}-${{ github.ref }}-${{ needs.get_info.outputs.BUILD }}
214214
cancel-in-progress: true
@@ -265,6 +265,8 @@ jobs:
265265
always() && (needs.build.result == 'success' || needs.build.result == 'skipped') &&
266266
(needs.get_info.outputs.BUILD == 'true' || github.event.inputs.deploy == 'true')
267267
runs-on: "ubuntu-latest"
268+
permissions:
269+
pull-requests: write # needed for commenting on PRs
268270
env:
269271
CODER_IMAGE_TAG: ${{ needs.get_info.outputs.CODER_IMAGE_TAG }}
270272
PR_NUMBER: ${{ needs.get_info.outputs.PR_NUMBER }}

0 commit comments

Comments
 (0)