Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit 459fd9c

Browse files
Merge pull request #67 from zawazawazawazawa/fix-github-actions
Remove step to delete branch
2 parents bfbd895 + c5f8ce8 commit 459fd9c

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

.github/workflows/create-draft-release.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,3 @@ jobs:
2424
draft: true
2525
env:
2626
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27-
28-
- name: Delete working branch
29-
uses: actions/github-script@v3
30-
with:
31-
github-token: ${{ secrets.GITHUB_TOKEN }}
32-
script: |
33-
const ownerAndRepoName = context.payload.repository.full_name.split('/');
34-
const owner = ownerAndRepoName[0];
35-
const repo = ownerAndRepoName[1];
36-
const ref = `heads/${context.payload.pull_request.head.ref}`;
37-
github.git.deleteRef({
38-
owner,
39-
repo,
40-
ref,
41-
});

0 commit comments

Comments
 (0)