2
0
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:
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: 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