Skip to content

Commit

Permalink
context ref
Browse files Browse the repository at this point in the history
  • Loading branch information
dudo committed Nov 12, 2024
1 parent b2750c5 commit 77c8a36
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/transient_down.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ jobs:
with:
github-token: ${{ secrets.PAT }}
script: |
console.log("CONTEXT");
console.log(context);
let response = await github.rest.repos.listDeployments({
owner: context.repo.owner,
repo: context.repo.repo,
ref: github.head_ref,
ref: context.payload.pull_request.head.ref,
});
console.log(`Deployments: \n${response.data}`);
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/transient_up.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,12 @@ jobs:
with:
github-token: ${{ secrets.PAT }}
script: |
console.log("GITHUB");
console.log(github);
console.log("CONTEXT");
console.log(context);
const response = await github.rest.repos.createDeployment({
owner: context.repo.owner,
repo: context.repo.repo,
ref: github.ref_name,
ref: context.payload.pull_request.head.ref,
environment: 'ephemeral',
description: 'Spinning up ephemeral environment',
transient_environment: true,
Expand Down

0 comments on commit 77c8a36

Please sign in to comment.