From 554e9026ce7c54cef9abc7934a0f113020158712 Mon Sep 17 00:00:00 2001 From: Anthony Griffon Date: Wed, 11 Sep 2024 10:45:10 +0200 Subject: [PATCH] misc: update template --- .github/workflows/changeset.yml | 2 -- .github/workflows/on-merge.yml | 17 ++++++++++++----- README.md | 5 +++++ 3 files changed, 17 insertions(+), 7 deletions(-) diff --git a/.github/workflows/changeset.yml b/.github/workflows/changeset.yml index ced02ef..3afed70 100644 --- a/.github/workflows/changeset.yml +++ b/.github/workflows/changeset.yml @@ -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: diff --git a/.github/workflows/on-merge.yml b/.github/workflows/on-merge.yml index e5f14ce..67be934 100644 --- a/.github/workflows/on-merge.yml +++ b/.github/workflows/on-merge.yml @@ -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 @@ -27,5 +35,4 @@ jobs: uses: 'BunnyWay/actions/deploy-script@main' with: script_id: ${{ secrets.SCRIPT_ID }} - deploy_key: ${{ secrets.DEPLOY_KEY }} file: "dist/index.ts" diff --git a/README.md b/README.md index 53f9fbd..34691bb 100644 --- a/README.md +++ b/README.md @@ -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)