Duplicating pipelines

Hello! I have .yml config with the following first lines:

name: CI

on:
  push:
    branches: [ main ]
    tags: 'v*'
  pull_request:
    branches: [ main ]

  workflow_dispatch:

When I push tag I obtain duplicating pipelines (please checkout the last workflow run):
image
I have git config --global push.followTags true enabled.

How to fix it? My test repo is this one. I want:

  • automatically check main.sh on every commit/tag push to main branch
  • automatically generate installer on every v* tag push to main branch

I have same problem: How to trigger an action on push or create tag but not on both?

Here I’ve solved this problem by creating two different .yml configs. I don’t think it’s perfect solution but it is solution. :slight_smile: