Skip to content

Commit

Permalink
ci: delete branch after release canary or next (#26)
Browse files Browse the repository at this point in the history
Signed-off-by: donniean <donniean1@gmail.com>
  • Loading branch information
donniean authored Jul 15, 2024
1 parent fe515d2 commit f53f58d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/release-canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,9 @@ jobs:

- name: Publish
run: yarn changeset publish --no-git-tag --tag canary

- name: Delete Branch
if: contains(github.ref, 'canary')
run: |
branch=${GITHUB_REF#refs/heads/}
git push origin --delete $branch
6 changes: 6 additions & 0 deletions .github/workflows/release-next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,9 @@ jobs:

- name: Publish
run: yarn changeset publish --no-git-tag --tag next

- name: Delete Branch
if: contains(github.ref, 'next')
run: |
branch=${GITHUB_REF#refs/heads/}
git push origin --delete $branch

0 comments on commit f53f58d

Please sign in to comment.