diff --git a/.github/workflows/Publish.yml b/.github/workflows/Publish.yml index 9e857cf..d3afe28 100644 --- a/.github/workflows/Publish.yml +++ b/.github/workflows/Publish.yml @@ -1,9 +1,7 @@ name: 📦 Publish on: - pull_request: - types: - - closed + push: branches: - main workflow_dispatch: @@ -17,7 +15,7 @@ env: jobs: Publish: name: 🚀 Publish - if: github.repository_owner == 'guotingchao' && github.event_name == 'pull_request' && github.event.pull_request.merged == true && github.head_ref == 'changeset-release/main' + if: github.repository_owner == 'guotingchao' && github.head_ref == 'changeset-release/main' runs-on: ubuntu-latest steps: - name: ⬇️ Checkout @@ -29,7 +27,6 @@ jobs: run: | echo ${{ github.repository_owner }} echo ${{ github.event_name }} - echo ${{ github.event.pull_request.merged }} echo ${{ github.head_ref }} echo ${{ github.ref }} echo ${{ github.ref_name }}