Skip to content

Worflow is not triggered by new tag #188

Open
@craftcodedev

Description

Hello,

I have an github workflow to be trigger when a new tag is created by antother workflow using the chart-releaser-action. You can see the following code:

Workflow using chart-releaser-action

`name: Release Charts

on:
  push:
    branches:
      - master

jobs:
  release:
    permissions:
      contents: write
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v3
        with:
          fetch-depth: 0

      - name: Configure Git
        run: |
          git config user.name "$GITHUB_ACTOR"
          git config user.email "[email protected]"

      - name: Install Helm
        uses: azure/setup-helm@v3

      - name: Run chart-releaser
        uses: helm/[email protected]
        with:
          charts_dir: apps
          config: "./.github/configs/cr.yaml"
        env:
          CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"`

Workflow to be trigger when a new tag is created:

`name: Build and push helm chart

on:
  push:
    tags:
      - '**'

jobs:
  build_and_push:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v3`

The new tag is created by chart-releaser-action but the Build and push helm chart workflow is not being trigger. I tried to create and push manually a tag and the workflow is being trigger. So I think the problem is the way chart-releaser-action is creating the tag. Maybe it is related to this issue?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions