Skip to content

Commit

Permalink
misc: update template
Browse files Browse the repository at this point in the history
  • Loading branch information
antho-bunny committed Sep 11, 2024
1 parent d3a98f0 commit de233de
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/changeset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ jobs:
issues: write
pull-requests: write

if: github.repository == 'BunnyWay/es-hono-pet-store'

name: Release
runs-on: ubuntu-latest
steps:
Expand Down
16 changes: 12 additions & 4 deletions .github/workflows/on-merge.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
name: On merge changeset
name: On merge

on:
pull_request:
types: [closed]
# To enable the Changeset pattern, you'll need to uncomment those line so each
# time a Pull Request is closed you run this action.
# pull_request:
# types: [closed]
# branches:
# - 'main'
# Every push on main are going to run this action.
push:
branches:
- 'main'

jobs:
publish:
if: contains(github.event.pull_request.head.ref, 'changeset-release')
# To ensure you only run this action when closing a Release PR, you should
# uncomment this
# if: contains(github.event.pull_request.head.ref, 'changeset-release')

name: 'Upload script'
runs-on: ubuntu-latest
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,8 @@ create an associated pull request to release your changes.

This new pull request will trigger the release process of the script to your
PullZone in Bunny.

> This behavior is disabled by default, every pushes on main are now pushed to
> Bunny directly.
> You can enable this pattern again by updating this
> [action](./.github/workflows/on-merge.yml)

0 comments on commit de233de

Please sign in to comment.