Skip to content

Commit

Permalink
sample deployment 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 2cdc9e2 commit 7b96926
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/github-script-poc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,23 @@ on:
jobs:
poc-test:
runs-on: ubuntu-latest
name: Build and Deploy Job
name: Sandbox Testing
steps:
- name: View context attributes
uses: actions/github-script@v7
# - name: View context attributes
# uses: actions/github-script@v7
# with:
# script: console.log(context)

- name: Register Sample Deployment
uses: actions/github-script@v4
with:
script: console.log(context)
script: |
const deployment = await github.repos.createDeployment({
owner: context.repo.owner,
repo: context.repo.repo,
ref: context.ref,
auto_merge: false,
description: "Sample GitHub-Script Deployment",
environment: `GitHub.Scripts (live)`,
production_environment: true
});

0 comments on commit 7b96926

Please sign in to comment.