Skip to content
Open
Show file tree
Hide file tree
Changes from 2 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
12 changes: 5 additions & 7 deletions .github/workflows/docs-preview-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: none
deployments: write
id-token: write
pull-requests: none
outputs:
Expand All @@ -216,10 +216,8 @@ jobs:
persist-credentials: false

- name: Create Deployment
# disabled: deployments are not enabled on this branch
if: >
false
&& env.MATCH == 'true'
env.MATCH == 'true'
&& needs.check.outputs.any_modified != 'false'
&& (
github.event_name == 'push'
Expand Down Expand Up @@ -331,6 +329,7 @@ jobs:
!cancelled()
&& needs.check.outputs.any_modified != 'false'
&& steps.internal-validate-path-prefixes.outcome == 'success'
&& (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository)

- name: Upload to S3
id: s3-upload
Expand All @@ -339,6 +338,7 @@ jobs:
&& !cancelled()
&& steps.internal-docs-build.outputs.skip != 'true'
&& steps.internal-docs-build.outcome == 'success'
&& (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository)
env:
AWS_RETRY_MODE: standard
AWS_MAX_ATTEMPTS: 6
Expand All @@ -360,10 +360,8 @@ jobs:

- name: Update deployment status
uses: actions/github-script@v8
# disabled: deployments are not enabled on this branch
if: >
false
&& env.MATCH == 'true'
env.MATCH == 'true'
&& always()
&& steps.deployment.outputs.result
env:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ static async (s, collector, state, ctx) => await s.Plan(collector, state.environ
/// <param name="s3BucketName">S3 bucket to deploy to.</param>
/// <param name="planFile">Path to the plan file produced by <c>assembler deploy plan</c>.</param>
[NoOptionsInjection]
public async Task<int> Apply(string environment, string s3BucketName, [Existing, ExpandUserProfile, RejectSymbolicLinks, FileExtensions(Extensions = "json")] FileInfo planFile, CancellationToken ct = default)
public async Task<int> Apply(string environment, string s3BucketName, [Existing, ExpandUserProfile, RejectSymbolicLinks, FileExtensions(Extensions = "json,plan")] FileInfo planFile, CancellationToken ct = default)
{
await using var serviceInvoker = new ServiceInvoker(collector);

Expand Down
Loading