Skip to content

Commit

Permalink
Merge pull request #64 from bmsteven/feature/test_branch
Browse files Browse the repository at this point in the history
feature/test_branch
  • Loading branch information
bmsteven authored Apr 25, 2022
2 parents 1a9c82f + 140e5f4 commit 13281a9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/eod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,7 @@ jobs:
SLACK_WEBHOOK_REVIEW_URL: ${{secrets.SLACK_WEBHOOK_REVIEW_URL}}
TARGET_BRANCH: staging
DESTINATION_BRANCH: main
TEAM_LEAD_ID: ${{secrets.TEAM_LEAD_ID}}
TECH_LEAD_ID: ${{secrets.TECH_LEAD_ID}}
REPO_OWNER: bmsteven
REPO_NAME: bump-version
1 change: 1 addition & 0 deletions action/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62483,6 +62483,7 @@ const run = async () => {
owner: context.payload?.repository?.owner?.login,
repo: context.payload?.repository?.name,
}); // if exists delete
console.log(branch_to_delete, branches);
if (branches?.data?.find((el) => el?.name === branch_to_delete)) {
await octokit.request(
`DELETE /repos/${context.payload?.repository?.full_name}/git/refs/heads/${branch_to_delete}`,
Expand Down
1 change: 1 addition & 0 deletions src/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ const run = async () => {
owner: context.payload?.repository?.owner?.login,
repo: context.payload?.repository?.name,
}); // if exists delete
console.log(branch_to_delete, branches);
if (branches?.data?.find((el) => el?.name === branch_to_delete)) {
await octokit.request(
`DELETE /repos/${context.payload?.repository?.full_name}/git/refs/heads/${branch_to_delete}`,
Expand Down

0 comments on commit 13281a9

Please sign in to comment.