Skip to content

Commit

Permalink
πŸš€ Update workflow for publishing
Browse files Browse the repository at this point in the history
- Updated trigger to 'push' on main
- Simplified condition for repository owner
- Removed unnecessary check for pull request status
  • Loading branch information
guotingchao committed Apr 30, 2024
1 parent 4470fae commit a26dfda
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/Publish.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: πŸ“¦ Publish

on:
pull_request:
types:
- closed
push:
branches:
- main
workflow_dispatch:
Expand All @@ -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
Expand All @@ -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 }}
Expand Down

0 comments on commit a26dfda

Please sign in to comment.