2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-15 11:59:42 +03:00

chore(ci): fixed publish action; (#5470)

This commit is contained in:
Dmitriy Mozgovoy
2023-01-16 01:47:46 +02:00
committed by GitHub
parent 484e0b6ed2
commit 557ed0a748
+5 -2
View File
@@ -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