helm / chart-releaser-action

A GitHub Action to turn a GitHub project into a self-hosted Helm chart repo, using helm/chart-releaser CLI tool
https://github.com/helm/chart-releaser
Apache License 2.0
539 stars 199 forks source link

Worflow is not triggered by new tag #188

Open craftcodedev opened 2 months ago

craftcodedev commented 2 months ago

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 "$GITHUB_ACTOR@users.noreply.github.com"

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

      - name: Run chart-releaser
        uses: helm/chart-releaser-action@v1.6.0
        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?