Skip to content

Commit

Permalink
chore(ci): fixed publish action; (#5470)
Browse files Browse the repository at this point in the history
  • Loading branch information
DigitalBrainJS committed Jan 15, 2023
1 parent 484e0b6 commit 557ed0a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
name: "Publish on merge"
name: Publish
on:
pull_request:
types:
- closed
branches:
- main
- 'v**'
workflow_dispatch:
jobs:
publish:
if: github.event.pull_request.merged == true && github.event.pull_request.head.label == 'axios:release'
if: github.event_name == 'workflow_dispatch' || (github.event.pull_request.merged == true && github.event.pull_request.head.label == 'axios:release')
runs-on: ubuntu-latest
steps:
- name: "Release PR info"
if: github.event_name != 'workflow_dispatch'
run: echo "PR ${{ github.event.number }}"
- uses: actions/checkout@v3
- name: git config
Expand Down

0 comments on commit 557ed0a

Please sign in to comment.