From 557ed0a7489b1bf62296ea34568eeea8975ff4f9 Mon Sep 17 00:00:00 2001 From: Dmitriy Mozgovoy Date: Mon, 16 Jan 2023 01:47:46 +0200 Subject: [PATCH] chore(ci): fixed publish action; (#5470) --- .github/workflows/publish.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 12acf85..37b07da 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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