Skip to content

Commit

Permalink
Attempting v7 github-script-poc.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
daveboster authored Nov 24, 2023
1 parent 544018e commit 46223b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/github-script-poc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,17 @@ jobs:
id: github-deployment-create
with:
script: |
const deployment = await github.repos.createDeployment({
const deployment = await github.rest.repos.createDeployment({
owner: context.repo.owner,
repo: context.repo.repo,
ref: context.ref,
task: task,
auto_merge: false,
description: "${{ env.deployment_description }}",
required_contexts: [],
task: "deploy",
environment: "${{ env.project_name }}-${{ env.environment_name }}",
transient_environment: false,
production_environment: ${{ env.is_production }}
});
console.log(deployment);
Expand Down

0 comments on commit 46223b6

Please sign in to comment.