mirror of
https://github.com/tenrok/axios.git
synced 2026-06-17 19:21:29 +03:00
chore(ci): fixed publish action; (#5470)
This commit is contained in:
@@ -1,16 +1,19 @@
|
|||||||
name: "Publish on merge"
|
name: Publish
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
types:
|
types:
|
||||||
- closed
|
- closed
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
- 'v**'
|
||||||
|
workflow_dispatch:
|
||||||
jobs:
|
jobs:
|
||||||
publish:
|
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
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: "Release PR info"
|
- name: "Release PR info"
|
||||||
|
if: github.event_name != 'workflow_dispatch'
|
||||||
run: echo "PR ${{ github.event.number }}"
|
run: echo "PR ${{ github.event.number }}"
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: git config
|
- name: git config
|
||||||
|
|||||||
Reference in New Issue
Block a user